04.03.2013, 15:25
my code
warnings..:
please help . thnx in advance..
pawn Код:
CMD:stats(playerid, params[], help)
{
if(IsPlayerConnected(playerid))
{
new Cash = PlayerInfo[playerid][pCash];
new Deaths = PlayerInfo[playerid][pDeaths];
new Kills = PlayerInfo[playerid][pKills];
new Score = PlayerInfo[playerid][pScore];
new pName[MAX_PLAYER_NAME];
SendClientMessage(playerid, -1, "{00FF22}Your stats {FFFFFF}%s", pName);
SendClientMessage(playerid, -1, "{FFFFFF}Cash: {2DA725}%d $", Cash);
SendClientMessage(playerid, -1, "{FFFFFF}Deaths: {00FF22}%d | Kills: {00FF22}%d", Deaths, Kills);
SendClientMessage(playerid, -1, "{FFFFFF}Score: {00FF22}%d", Score);
}
return 1;
}
Код:
C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1469) : warning 202: number of arguments does not match definition C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1470) : warning 202: number of arguments does not match definition C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1471) : warning 202: number of arguments does not match definition C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1471) : warning 202: number of arguments does not match definition C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1472) : warning 202: number of arguments does not match definition C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1466) : warning 204: symbol is assigned a value that is never used: "Score" C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1465) : warning 204: symbol is assigned a value that is never used: "Kills" C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1464) : warning 204: symbol is assigned a value that is never used: "Deaths" C:\Users\user7\Desktop\Server\gamemodes\new.pwn(1463) : warning 204: symbol is assigned a value that is never used: "Cash" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase