case question
#1

PHP код:
    switch(random(25))
    {
case 
0
case 
1:
..........
case 
25
OR

PHP код:
    switch(random(26))
    {
case 
0
case 
1:
..........
case 
25
which is the correct form?
Reply
#2

case 0 .. 1

case 25
Reply
#3

Код:
    switch(random(26)) // from 0 to 25 = 26.
    { 
        case 0:  
        case 1: 
        .......... 
       case 25:  
    }
Reply
#4

https://sampwiki.blast.hk/wiki/Switch

It looks like you need this
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)