08.01.2010, 17:05
I need some help, I only want it so that it comes up with a box and you can ONLY click Ok. But if I remove the "Cancel" then the command doesnt work. If you click Cancel In Game it says "Server Closed Connection". Hope someone can help me.
pawn Код:
if(strcmp(cmd, "/jobhelp", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pJob] == 1)
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Job Help","Your Job: Dectective\n /find","Ok","Cancel");
}
else if(PlayerInfo[playerid][pJob] == 2)
{
ShowPlayerDialog(playerid,0,DIALOG_STYLE_MSGBOX,"Rules","Your Job: Lawyer\n /free","Ok","Cancel");
}
}
return 1;
}