26.05.2017, 13:40
So when I try to compile my small command (Givecash) I get the error: error 035: argument type mismatch (argument 2) I know this has something to do with my Colors, but I have no idea what.
Script:
Could someone tell me what I did wrong?
Script:
PHP код:
#define COL_RED "{F81414}"
CMD:givecash(playerid, params[])
{
new targetid, money;
if(sscanf(params,"ui",targetid, money)) return SendClientMessage(playerid, COL_RED ,"SYNTAX: /givecash <PlayerID> <Amount>");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COL_RED,"ERROR: That player is not connected!");
GivePlayerMoney(targetid,money);
return 1;
}