Setlevel doesn't work properly
#8

Quote:
Originally Posted by Rajat_Pawar
Посмотреть сообщение
pawn Код:
if(PlayerInfo[playerid][Level] < 4 || !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF69521AA,"You can't use this command!");
It should be:
pawn Код:
if(PlayerInfo[playerid][Level] < 4 && !IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xF69521AA,"You can't use this command!");
because the OR (||) makes it to return an error if the player is not both rcon and admin >= 4 level.
Reply


Messages In This Thread
Setlevel doesn't work properly - by Vasu99 - 01.03.2014, 16:00
Re: Setlevel doesn't work properly - by RajatPawar - 01.03.2014, 16:06
Re: Setlevel doesn't work properly - by ReD_HunTeR - 01.03.2014, 16:07
Re: Setlevel doesn't work properly - by Vasu99 - 01.03.2014, 16:14
Re: Setlevel doesn't work properly - by RajatPawar - 01.03.2014, 16:16
Re: Setlevel doesn't work properly - by Vasu99 - 01.03.2014, 16:18
Re: Setlevel doesn't work properly - by RajatPawar - 01.03.2014, 16:19
Re: Setlevel doesn't work properly - by Konstantinos - 01.03.2014, 16:49
Re: Setlevel doesn't work properly - by DaniceMcHarley - 01.03.2014, 17:25
Re: Setlevel doesn't work properly - by Konstantinos - 01.03.2014, 17:32

Forum Jump:


Users browsing this thread: 2 Guest(s)