02.09.2013, 08:16
pawn Код:
CMD:getcookies(playerid, params[])
{
if(sscanf(params, "u", GiveID)) return SendClientMessage(playerid, RED, "USAGE: /getcookies [ID]");
{
if(!IsPlayerConnected(GiveID)) return SendClientMessage(playerid, RED, "ERROR: Player is not connected");
{
if(GiveID == playerid) SendClientMessage(playerid, RED, "ERROR: You can check your own cookies using /mycookies");
{
new str[256],name2[MAX_PLAYER_NAME];
format(str, sizeof(str), "Name : %s\n Cookies\n%d", name2, pInfo[GiveID][COOKIES]);
ShowPlayerDialog(playerid, D_GETCOOKIES, DIALOG_STYLE_MSGBOX, "Cookies Statistic",str,"OK","");
}
}
}
return 1;
}
What is the problem?