CMD:givemoney(playerid, params[])
{
if(IsPlayerAdmin2[playerid] == 2)
{
new targetid, amouth[128];
if(sscanf(params, "ud", targetid, amouth)) return SendClientMessage(playerid, COLOR_RED, "USAGE: /givemoney [id] [money]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, COLOR_ORANGE, "That player is not online.");
GivePlayerMoney(targetid,amouth);
format(amouth, sizeof(amouth), "Admin gived to u $%d",amouth);
SendClientMessage(targetid, COLOR_RED, amouth);
}
return 1;
}
error 035: argument type mismatch (argument 2)
if(IsPlayerAdmin[playerid] == 2)
GivePlayerMoney(targetid,amouth);
dude its not that the reason for the error... :/
the error line is 222 and that line is this one pawn Код:
|
GivePlayerMoney(giveplayerid, amount)
You spelt ammount wrong.
try Код:
GivePlayerMoney(giveplayerid, amount) |
nope isn't fixed :/
Please someone help ! EDIT: no dude that must stay there |
format(string, sizeof(string), "Admin gave you $%d", amouth); SendClientMessage(targetid, COLOR_RED, string);
GivePlayerMoney(targetid,strval(amouth));
CMD:givemoney(playerid, params[])
{
if(IsPlayerAdmin2[playerid] == 2)
{
new targetid, amouth, string[128];
if(sscanf(params, "ud", targetid, amouth)) return SendClientMessage(playerid, -1, "USAGE: /givemoney [id] [money]");
if(!IsPlayerConnected(targetid)) return SendClientMessage(playerid, -1, "That player is not online.");
GivePlayerMoney(targetid,amouth);
format(string, sizeof(string), "Admin gived to u $%d",amouth);
SendClientMessage(targetid, -1, string);
}
return 1;
}