Issue agian GOD....
#1

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?
Reply
#2

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);
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)