Confusion Will Rep if that counts
#1

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 == != >= <= < >
Reply
#2

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

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
Reply
#4

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
Reply
#5

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

whats the problem?
Reply
#6

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

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
Reply
#8

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)