SA-MP Forums Archive
Issue agian GOD.... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Issue agian GOD.... (/showthread.php?tid=475504)



Issue agian GOD.... - Lynet - 13.11.2013

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 ._.


Код HTML:
if(PInfo[playerid][Level] >= 7) return SendClientMessage(playerid,COLOR_RED,"You are not admin level 7.");
Whats wrong with this?


Re: Issue agian GOD.... - Pottus - 13.11.2013

You fucked it all up

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

Try this instead....

pawn Код:
#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);


Re: Issue agian GOD.... - DanishHaq - 13.11.2013

pawn Код:
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