01.05.2014, 14:13
Hi!
I made this stats command.But I get an error 035: argument type mismatch (argument 2).
What is the problem here?
Pawn code:
Variables:
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
I made this stats command.But I get an error 035: argument type mismatch (argument 2).
What is the problem here?
Pawn code:
pawn Код:
CMD:stats(playerid,params[])
{
new Cash = PlayerInfo[playerid][pCash];
new Deaths = PlayerInfo[playerid][pDeaths];
new Kills = PlayerInfo[playerid][pKills];
new string[500];
format(string,sizeof(string),"Cash: %d | Deaths: %d | Kills: %d |",Cash,Deaths,Kills);
SendClientMessage(playerid,string);
return 1;
}
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}