10.11.2014, 13:53
hi guys im trying to give money but no matter what i type 1 or 200 or 5000 it allways give 10M
i tried with Float Too And Without Float
Can AnyOne Help ME!?!?!? .
i tried with Float Too And Without Float
pawn Код:
CMD:givemoney(playerid, params[])
{
new pid, money;
if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFF0000FF, "You Are Not Admin But You Allowed To Use /pay");
if(sscanf(params, "uf", pid, money)) return SendClientMessage(playerid, 0xFFFF00FF, "Usage : /{FF0000}GiveMoney {FFFF00}[ID] [Value]!");
if(!IsPlayerConnected(pid)) return SendClientMessage(playerid, 0xFFFF00FF, "Player Doesn't Exist!");
else
{
new pName[MAX_PLAYER_NAME], Str[128];
GetPlayerName(playerid, pName, sizeof(pName));
format(Str, sizeof(Str), "Admin : %s Gave You $%d Cash!", pName, money);
SendClientMessage(pid, 0x00FF00FF, Str);
GivePlayerMoney(pid, money);
}
return 1;
}