Set Cash help
#1

Hello,
my admin command to set cash:
Код:
dcmd_setcash(playerid, params[])
{
    new pID;
    if(PlayerInfo[playerid][pAdminLevel] >= 1) {
    if(sscanf(params, "us[128]", pID, params[2])) return SendClientMessage(playerid, COLOR_RED, "USAGE: /setcash [playerid] [amount of money]");
    if(pID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_RED, "This player is not connected");
    ResetPlayerMoney(pID);
    return SetPlayerMoney(pID,params[2]);
    } else if(PlayerInfo[playerid][pAdminLevel] == 0) return SendClientMessage(playerid, COLOR_RED, "You are not admin.");
    return 1;
}
When I want to set example player with 0 id,I type /setcash 0 1000 .It should give 1000 ,but it gives only 49.
It always gives max amount 49.Any help ?
Reply


Messages In This Thread
Set Cash help - by aqu - 13.03.2011, 20:25
Re: Set Cash help - by xRyder - 13.03.2011, 20:30
Re: Set Cash help - by ricardo178 - 13.03.2011, 20:32
Re: Set Cash help - by aqu - 13.03.2011, 20:32
Re: Set Cash help - by xir - 13.03.2011, 20:33
Re: Set Cash help - by xRyder - 13.03.2011, 20:36
Re: Set Cash help - by xir - 13.03.2011, 20:37
Re: Set Cash help - by xRyder - 13.03.2011, 20:41
Re: Set Cash help - by xir - 13.03.2011, 20:43
Re: Set Cash help - by xRyder - 13.03.2011, 20:49

Forum Jump:


Users browsing this thread: 1 Guest(s)