14.03.2016, 14:52
Hey. I've got a question over here about PVar variables. I've got script over here, that displays ur current variable in dialog. For example if variable [PlayerAdmin] is equal to 0, it says "You've got no administrator rights", and if it's equal to 1, it says "You've got administrator rights". The question is - if my variable has has int 2,3,4,5 and so on, how do I print it on dialog?
Current code (it's just an example):
if I insert one more colon and rewrite one more choice, compiling throws me few errors.
Example I was talking about:
Is there any choice I can insert more choices to represent them in dialog? ![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
Soz for my english. I'm bad
Current code (it's just an example):
Код:
GetPVarInt(playerid, "PlayerAdminLevel") ? (""grey"Unavailable") : (""green"Available"));
Example I was talking about:
Код:
GetPVarInt(playerid, "PlayerAdminLevel") ? (""grey"Unavailable") : (""green"Available") : (""white"3rd choice));
![Huh?](images/smilies/confused.gif)
![Huh?](images/smilies/confused.gif)
Soz for my english. I'm bad
![Shocked](images/smilies/surprised.gif)