Help with class selection? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Help with class selection? (
/showthread.php?tid=83020)
Help with class selection? -
Mr_Finnigan - 22.06.2009
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?
Re: Help with class selection? -
Gappy - 22.06.2009
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
Re: Help with class selection? -
Mr_Finnigan - 22.06.2009
Where do i put that ? if i put it under OnPlayerRequestClass i get errors saying expected case ... ?