05.10.2012, 21:14
I have these;
And I think its because I updated my sscanf to sscanf 2 or something and one of the CMD's thats causing one of these is:
+rep if you can help ;/
Код:
[17:24:00] sscanf warning: Format specifier does not match parameter count. [17:24:00] sscanf warning: Format specifier does not match parameter count. [17:24:00] sscanf warning: Format specifier does not match parameter count. [17:24:00] sscanf warning: Format specifier does not match parameter count.
Код:
CMD:givetokens(playerid, params[]) { new string[128], amount, giveplayerid; if(PlayerInfo[playerid][pAdmin] >= 4) { if(sscanf(params, "ud", giveplayerid, amount)) return SendClientMessage(playerid, COLOR_WHITE, "USAGE: /givetokens [playerid] [amount]"); if(IsPlayerConnected(giveplayerid)) { format(string, sizeof(string), "AdmCmd: %s has just given %s %i VIP Tokens.", GetPlayerNameEx(playerid), GetPlayerNameEx(giveplayerid), amount); ABroadCast(COLOR_LIGHTRED, string, 1); PlayerInfo[playerid][pVIPTokens] +=amount; } } else SendClientMessage(playerid, COLOR_WHITE, "You are not authorized to use this command!"); return 1; }