Problem with admin level
#1

hi, i have problem. Level 1 administrators can use 2 and 3 levels of admin commands, what is problem?

1 Level
Код:
 if(playerDB[playerid][admin] < 1)
    {
2 Level
Код:
 if(playerDB[playerid][admin] < 2)
    {
3 Level
Код:
 if(playerDB[playerid][admin] !=3)
    {
Reply
#2

1 Level
Код:
 if(playerDB[playerid][admin] >= 1)
    {
2 Level
Код:
 if(playerDB[playerid][admin] >= 2)
    {
3 Level
Код:
 if(playerDB[playerid][admin] >= 3)
    {
Reply
#3

Reni learn maths please, what you did means that if the level is LESS than one they can use the commands, same to 2 and 3.
< is smaller than
> is greater than
>= is equal to or greater than
=< is equal to or smaller than.
Reply
#4

Ye, but does not work
Reply
#5

/facepalm
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)