Case's - 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: Case's (
/showthread.php?tid=180791)
Case's -
Luis- - 02.10.2010
pawn Код:
switch( classid )
{
case 280 || 281 || 282 || 283 || 284 || 285 || 286 || 297 || 288:
g_iJob[ playerid ] = JOB_POLICE;
case 274 || 275 || 276:
g_iJob[ playerid ] = JOB_EMS;
case 277 || 288 || 289:
g_iJob[ playerid ] = JOB_FIREMAN;
}
I get this error..
Код:
C:\Users\BooNii3\Los Santos Role Play Forums - Server\Foxx RP\Core\gamemodes\Core.pwn(207) : error 040: duplicate "case" label (value 1)
C:\Users\BooNii3\Los Santos Role Play Forums - Server\Foxx RP\Core\gamemodes\Core.pwn(209) : error 040: duplicate "case" label (value 1)
Re: Case's -
bigcomfycouch - 02.10.2010
pawn Код:
switch ( classid )
{
case 280 .. 286, 297:
g_iJob[ playerid ] = JOB_POLICE;
case 274 .. 276:
g_iJob[ playerid ] = JOB_EMS;
case 277, 288, 289:
g_iJob[ playerid ] = JOB_FIREMAN;
}
Re: Case's -
Luis- - 02.10.2010
Thanks Bro