Wont Work :(
#6

MAX_PLAYERS can be even 1000, but not 10000000000.

By the way, opening braces like that is pointless.
pawn Код:
CMD:getcookies(playerid, params[])
{
    new ID;
    if(sscanf(params, "r", ID)) return SendClientMessage(playerid, RED, "USAGE: /getcookies [Name/ID]");
    if(ID == INVALID_PLAYER_ID) return SendClientMessage(playerid, RED, "ERROR: Player is not connected");
    if(ID == playerid) SendClientMessage(playerid, RED, "ERROR: You can check your own cookies using /mycookies");
    new str[64],name2[MAX_PLAYER_NAME];
    GetPlayerName(ID, name2, MAX_PLAYER_NAME);
    format(str, sizeof(str), "Name : %s\n Cookies\n%d", name2, pInfo[ID][COOKIES]);
    ShowPlayerDialog(playerid, D_GETCOOKIES, DIALOG_STYLE_MSGBOX, "Cookies Statistic",str,"OK","");
    return 1;
}
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: 2 Guest(s)