class and vip allowed to use these vehicles...
#3

Quote:
Originally Posted by Voxel
Посмотреть сообщение
You are using a incorrect control structure which is "<" and means "smaller then". In this case you are checking if the player has a vip level less then 1 and then execute the code, what you want to do is check if hes higher or equal to one.
pawn Код:
Player[playerid][viplevel] >= 1)
Take a look here: https://sampwiki.blast.hk/wiki/Control_Structures
Good luck!

edit: I think I made a mistake, you are checking if hes less then one, you can simply change "<" to "== 0" but the above code will work aswell if you change your code a bit.
Yeah true, but I got question for my future scripting... Do I even need to say that you do not need a vip, I think do you need to check every time on play enter car is he vip, or I dont need to.
Reply


Messages In This Thread
class and vip allowed to use these vehicles... - by SwisherSweet - 13.01.2014, 23:48
Re: class and vip allowed to use these vehicles... - by Voxel - 14.01.2014, 04:54
Re: class and vip allowed to use these vehicles... - by xZdadyZx - 14.01.2014, 05:41
Re: class and vip allowed to use these vehicles... - by Voxel - 14.01.2014, 06:22

Forum Jump:


Users browsing this thread: 1 Guest(s)