27.11.2010, 17:50
hi,
i wanted to make a command where a dialog pops up after entered /info.
No errors or sth but in game just nothing happens.
I hope u can help me.
regards.
i wanted to make a command where a dialog pops up after entered /info.
No errors or sth but in game just nothing happens.
I hope u can help me.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
{
if(strcmp(cmdtext,"/info",true)==0)
{
ShowPlayerDialog(playerid, Gameinfodialogue, DIALOG_STYLE_MSGBOX, "Information about the gamemode", "My text", "Next", "Close");
return 1;
}
}
return 0;
}