14.03.2011, 15:52
hello,I made stats command,but I am getting 3 warnings.
Here is my script:
Warnings:
Any help?
Here is my script:
Код:
dcmd_stats(playerid,params[]) { new string[128]; new name; name = GetPlayerName(playerid); playerid = strval(params); if(gPlayerLogged[playerid] = 1) { format(string, sizeof(string), "| %s's Stats: Kills: %d | Deaths: %d ",name, PlayerInfo[playerid][pKills], PlayerInfo[playerid][pDeaths]); return SendClientMessage(playerid, COLOR_GREEN, string); } else return SendClientMessage(playerid, COLOR_RED, "Player Not Connected!"); }
Код:
C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(2111) : warning 202: number of arguments does not match definition C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(2111) : warning 202: number of arguments does not match definition C:\Users\bendra\Desktop\Samp Serveriai\Serv\gamemodes\LSTW2v2.pwn(2114) : warning 211: possibly unintended assignment Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 3 Warnings.