Wont Work :(
#1

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;
}
When I make /getcookies 10000000000 it show the usage.
What is the problem?
Reply


Messages In This Thread
Wont Work :( - by Giroud12 - 02.09.2013, 08:16
Re: Wont Work :( - by Dragonsaurus - 02.09.2013, 08:18
Re: Wont Work :( - by Giroud12 - 02.09.2013, 08:19
Re: Wont Work :( - by Dragonsaurus - 02.09.2013, 08:21
Re: Wont Work :( - by Giroud12 - 02.09.2013, 08:21
Re: Wont Work :( - by Konstantinos - 02.09.2013, 08:22

Forum Jump:


Users browsing this thread: 1 Guest(s)