Quote:
Originally Posted by [bot]fatninja
thnx, am i to enter that in my gamemode?
|
pawn Code:
CMD:credits(playerid,params[])
{
ShowPlayerDialog(playerid, DIALOGID3, DIALOG_STYLE_MSGBOX, "credits" "your credits", "ok", "Cancel");
return 1;
}
Put this code in your gamemode along with other commands and not under any public callback.Also define your dialog with a dialog id at the top of your script along with other defines.
pawn Code:
#define DIALOGID3 101 // 101 is the unique dialog id defined for a dialog named DIALOGID3