24.04.2012, 13:25
I am trying to make it so you can set other peoples money
It compiles fine but when in game when i do /setmoney (myid) (theamount) it just says
Admin blah has set (persons name ) 0
But when i do /setmoney (myname) (amount)
It says Admin blag has set (persons name ) 65355
Thank You
Please Help Me Please
It compiles fine but when in game when i do /setmoney (myid) (theamount) it just says
Admin blah has set (persons name ) 0
But when i do /setmoney (myname) (amount)
It says Admin blag has set (persons name ) 65355
pawn Код:
CMD:setmoney(playerid, params[])
{
if(PlayerData[ID][AdminLevel] >= 3)
{
new money;
if(sscanf(params, "u",ID, money)) return SendClientMessage(playerid, COLOR_GREEN, "/setmoney [ID] [Amount]");
format(str2, sizeof(str2),"Admin %s has given %s %d",PlayerData[playerid][AdminName],pname,money);
GivePlayerMoney(playerid, money);
SendClientMessageToAll(COLOR_GREEN, str2);
}
return 1;
}
Thank You
Please Help Me Please