Switch question
#1

I can use something like that?
switch(level)
{
case 1-5:
bank += randomEx(300,310);
it will be 1 to 5?
Reply
#2

u can use it this way


switch(level)
{
case 1:
case 2:
case 3:
case 4:
case 5:
bank += randomEx(300,310);
Reply
#3

https://sampwiki.blast.hk/wiki/Control_Structures
Код:
case 1 .. 5:
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)