What's wrong with this line?
#3

new pInfo[MAX_PLAYERS][PlayerInfo]; you have, PlayerInfo[playerid][AdminLevel]<5

I would recommend doing this instead.

pawn Код:
#define CMDLEVEL(%0) if(!IsPlayerAdmin(playerid)|| pInfo[playerid][AdminLevel]< %0) return SendClientMessage(playerid,0xFF0000FF,"You're not authorized to use that command");
Then all you need to do is write, CMDLEVEL(5); much easier when you have a lot of commands.
Reply


Messages In This Thread
What's wrong with this line? - by Gogorakis - 14.08.2014, 00:48
Re: What's wrong with this line? - by Jefff - 14.08.2014, 00:52
Re: What's wrong with this line? - by Pottus - 14.08.2014, 00:53
Re: What's wrong with this line? - by Gogorakis - 14.08.2014, 01:04
Re: What's wrong with this line? - by billy123321 - 14.08.2014, 01:24
Re: What's wrong with this line? - by Pottus - 14.08.2014, 01:24

Forum Jump:


Users browsing this thread: 2 Guest(s)