error 035: argument type mismatch (argument 2)
#2

Quote:
Originally Posted by NviDa
Посмотреть сообщение
Hi!
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;
}
Variables:
enum pInfo
{
pPass,
pCash,
pAdmin,
pKills,
pDeaths
}
You need a COLOR.

Before:
pawn Код:
SendClientMessage(playerid,string);
After:
pawn Код:
SendClientMessage(playerid,-1,string);
NOTE: -1 is color WHITE.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)