Help with class selection?
#1

I tried search but i tried wording many different ways and no luck.

When you add more to OnPlayerRequestClass like
Код:
case 0
 { 
  blahblahblah
 }

case 1
 { 
  blahblahblah
 }

case 2
 { 
  blahblahblah
 }

case 3
 { 
  blahblahblah
 }

case 4
 { 
  blahblahblah
 }

case 5
 { 
  blahblahblah
 }
It always still only shows case 0,1,2,0,1,2 instead of case 0,1,2,3,4,5 ,does anyone know how i change it so when choosing skin screen you see case0,1,2,3,4,5?
Reply
#2

Use

pawn Код:
if(classid == 0)
{
  //code here
}
else if(classid == 1 || classid == 2 || classid == 3 || classid == 4)
{
  //code here
}
else if(classid == 5 || classid == 6 || classid == 7)
{
  //code here
}
else if(classid == 8)
{
  //code here
}
etc etc
Reply
#3

Where do i put that ? if i put it under OnPlayerRequestClass i get errors saying expected case ... ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)