#1

Код:
(411) : error 017: undefined symbol "player"
(411) : warning 215: expression has no effect
(411) : error 001: expected token: ";", but found "]"
(411) : error 029: invalid expression, assumed zero
(411) : fatal error 107: too many error messages on one line
pawn Код:
line 411; if(player[playerid][AdminLevel] >= 6
Whole command

pawn Код:
CMD:makeadmin(playerid, params[])
{
    if(player[playerid][AdminLevel] >= 6)
    {
        new id, level,string[126];
       
        if(sscanf(params, "ud", id, level))
            return SendClientMessage(playerid, -1, "USAGE: /makeadmin [playerid] [level]");

        if(player[playerid][AdminLevel] > player[id][AdminLevel]
        {
            player[id][AdminLevel] = level;
           
            format(string, sizeof(string), "%s has made you admin level %d", GetNameEx(playerid), level);
            SendClientMessage(id, -1, string);
           
            format(string, sizeof(string), "You have made %s admin level %d", GetNameEx(id), level);
            SendClientMessage(playerid, -1, string);
        }
    }
    return 1;
}
Thanks in advance
Reply
#2

if (player[playerid][AdminLevel] > player[id][AdminLevel])
Reply
#3

I don't really get what you mean.
Reply
#4

You miss a ) man!
Reply
#5

Sorry for being a dense cunt but I still get this.
I added the ")" also.

Код:
(411) : error 017: undefined symbol "player"
(411) : warning 215: expression has no effect
(411) : error 001: expected token: ";", but found "]"
(411) : error 029: invalid expression, assumed zero
(411) : fatal error 107: too many error messages on one line
This is the line...
pawn Код:
if(player[playerid][AdminLevel] >= 6)
Reply
#6

Define the enum "player". I go to bed, no more posts for today. Pm for problem.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)