26.07.2011, 03:29
pawn Код:
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;
}
pawn Код:
error 035: argument type mismatch (argument 2)