error 035: argument type mismatch (argument 2)
#1

I am making a admin script with SII,zcmd and sscanf.

Im trying to make a setlevel command but i keep getting the error in thread title.Im not a total noob but im new to making inis and admin commans.

Код:
CMD:promote(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
    return 1;
    }
    else SendClientMessage(playerid, RED,"[pr0adm]You must be level 5 to set a players level.");
    return 1;
}
I know this is probably very wrong but its the closest i could get to a decent admin command.Any help for this would be very appreciated as always
Reply
#2

That command returns 1 or that SendClientMessage. Nothing else.

To fix command. Here ya go
pawn Код:
CMD:promote(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] >= 5)
    {
        return 1; // Add whatever your code u want here.
    }
    else return SendClientMessage(playerid, RED,"[pr0adm]You must be level 5 to set a players level.");
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)