Problem with admin level - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Problem with admin level (
/showthread.php?tid=229964)
Problem with admin level -
RenisiL - 22.02.2011
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)
{
Re: Problem with admin level -
Cameltoe - 22.02.2011
1 Level
Код:
if(playerDB[playerid][admin] >= 1)
{
2 Level
Код:
if(playerDB[playerid][admin] >= 2)
{
3 Level
Код:
if(playerDB[playerid][admin] >= 3)
{
Re: Problem with admin level -
maramizo - 22.02.2011
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.
Re: Problem with admin level -
RenisiL - 22.02.2011
Ye, but does not work
Re: Problem with admin level -
maramizo - 22.02.2011
/facepalm