Robbing another player . I get a warning
#5

Quote:
Originally Posted by Lordzy
View Post
I'd go for:
pawn Code:
RandomEx(0, GetPlayerMoney(ID));
0 as the least value and the highest value would be player's cash.
Ah , thanks , but getting a bit of cash instead of none is better :S .
Anyways i've got one more question :
How can i fix this one too ?
Code:
(2171) : error 029: invalid expression, assumed zero
pawn Code:
CMD:admin(playerid, params[])
{
    new string[128];
    new sName[MAX_PLAYER_NAME];
    new Message[128];
    if(sscanf(params, "s", string)) return SendClientMessage(playerid, -1, "USAGE: /admin [question]");
    GetPlayerName(playerid, sName, sizeof(sName));
    format(Message, sizeof(Message), "[{FF0000}QUESTION{EEEEEE}] from %s: %s", sName, string);
    for(new i; i < MAX_PLAYERS; i++){
        if(PlayerInfo[i][pAdmin] >= 1 {   // <======== Error line .
            SendClientMessage(i,COLOR_YELLOW, Message);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Robbing another player . I get a warning - by Johnson_Brooks - 16.05.2014, 08:18
Re: Robbing another player . I get a warning - by Lordzy - 16.05.2014, 08:20
Re: Robbing another player . I get a warning - by Johnson_Brooks - 16.05.2014, 08:26
Re: Robbing another player . I get a warning - by Lordzy - 16.05.2014, 08:28
Re: Robbing another player . I get a warning - by Johnson_Brooks - 16.05.2014, 08:38
Re: Robbing another player . I get a warning - by Lordzy - 16.05.2014, 08:40
Re: Robbing another player . I get a warning - by jihadmeneer - 16.05.2014, 08:40
Re: Robbing another player . I get a warning - by Johnson_Brooks - 16.05.2014, 08:41

Forum Jump:


Users browsing this thread: 1 Guest(s)