SA-MP Forums Archive
Confusion Will Rep if that counts - 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: Confusion Will Rep if that counts (/showthread.php?tid=313672)



Confusion Will Rep if that counts - Buzzbomb - 26.01.2012

I'm getting confused About the Control Structures I want The highest levels from 25 to 0 to use lower level commands i tried them all I set Messages in my commands to let me know if i was successful Well I wasn't Some work some don't I think i have about 20 commands there admins. And So far I want higher levels to control lower levels and the lower levels to control just there commands Witch Control structures am I a post to use == != >= <= < >


Re: Confusion Will Rep if that counts - [ABK]Antonio - 26.01.2012

pawn Код:
if(level >= 1) //Everyone who is level one and above can use this command
pawn Код:
if(level != 1) //Everyone who isn't level 1 can use this command
pawn Код:
if(level <= 1) //Everyone who is level 1 or less than level 1 can use this command
pawn Код:
if(level < 1) //Everyone who's level is lower than 1, which means level 1 can't use it
pawn Код:
if(level > 1) //Everyone above level one can use it however level 1 can't
pawn Код:
if(level == 1) //If their level is 1 they can use this, no other levels



Re: Confusion Will Rep if that counts - Chris White - 27.01.2012

If you want to learn them, then you can go to: https://sampwiki.blast.hk/wiki/Control_Structures
If you want the advanced one, go to: https://sampwiki.blast.hk/wiki/Advanced_Structures


Re: Confusion Will Rep if that counts - Buzzbomb - 27.01.2012

Quote:
Originally Posted by Chris White
Посмотреть сообщение
If you want to learn them, then you can go to: https://sampwiki.blast.hk/wiki/Control_Structures
If you want the advanced one, go to: https://sampwiki.blast.hk/wiki/Advanced_Structures
Dude you trying to make points or aggravate me Ive Looked at the Structures on wiki.. I tried them all errors Ok Bud thanks for your comment


Re: Confusion Will Rep if that counts - jamesbond007 - 27.01.2012

https://sampwiki.blast.hk/wiki/Control_Structures#Operators

whats the problem?


Re: Confusion Will Rep if that counts - Buzzbomb - 27.01.2012

Now What I need to ask is Is it unlimited on the structures cause I use >= And I get Not Authorized...........


Re: Confusion Will Rep if that counts - [ABK]Antonio - 27.01.2012

Quote:
Originally Posted by Buzzbomb
Посмотреть сообщение
Now What I need to ask is Is it unlimited on the structures cause I use >= And I get Not Authorized...........
Look at it like this...

If i have a value that is 1....and a second value that is 44, 1 is less than 44 right? Which means that 44 is greater than or equal to 1. Check if your variables are actually setting

Here's another example, we have a value of 48542, it is greater than or equal to 1


Re: Confusion Will Rep if that counts - Buzzbomb - 27.01.2012

I Have 1 2 3 4 and 10 is it my number levels


Re: Confusion Will Rep if that counts - Buzzbomb - 27.01.2012

Ok I know i got Everything right this is aggravating... Some work some dont I dont under stand..... Someone please help me I Understand what the Structures doo My question is Why They Failing or giving me the Error Message