PDA

View Full Version : Issue agian GOD....


Lynet
13/11/2013, 03:34 PM
Hello guys, having the same issue just after I fixed it, I did like ppl told me to do but now its fuckin up agian.

I'm level 11 in my admin script, and now I can't use an level 7 admin cmd ._.


if(PInfo[playerid][Level] >= 7) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 7.");


Whats wrong with this?

Pottus
13/11/2013, 03:36 PM
You fucked it all up :)

if(PInfo[playerid][Level] >= 7) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 7.");

Try this instead....

#define CMDLEVEL(%0); if(PInfo[playerid][Level] < %0) { \
new line[128]; \
format(line, sizeof(line), ""You are not admin level %i.", %0); \
return SendClientMessage(playerid,COLOR_RED, line); }

Now just put CMDLEVEL(7);

DanishHaq
13/11/2013, 03:38 PM
if(PInfo[playerid][Level] < 7) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 7.");

== equal to
!= not equal to
> higher
< lower
>= higher and equal
<= lower and equal