SA-MP Forums Archive
Case error help - 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)
+--- Thread: Case error help (/showthread.php?tid=545907)



Case error help - Cr3dO - 11.11.2014

PHP код:
stock GetTeamZoneColor(teamid)
{
    switch(
teamid)
    {
    
11599-     case 0: TEAM_VAGOS: return 0xFFFF0088;
    
11600-    case 1: TEAM_GROVE: return 0x00FF0088;
        case 
2: TEAM_BALLAS: return 0xFF00FF88;
        case 
3: TEAM_VAGOS: return 0xF5BE1880;
        case 
4: TEAM_AZTECAS: return COLOR_LIGHTBLUE;
        case 
5: TEAM_TRIADS: return TRIAD_COLOR;
        case 
6: TEAM_DANANGBOYS: return DANANGBOYS_COLOR;
        case 
7: TEAM_CRIPZ: return CRIPZ_COLOR;
        case 
8: TEAM_LSPD: return POLICE_COLOR;
        case 
9: TEAM_TheRockStars: return 0xE60000FF;
        case 
10: TEAM_SPECIALFORCE: return 0xC3AF00FF;
        case 
11: TEAM_ASIANTRIADS: return 0xFF80003E;
        case 
12: TEAM_MS13: return COLOR_MS13;
        case 
13: TEAM_CozaNostra: return CozaNostra_COLOR;
        case 
14: TEAM_ALQ: return 0xF0B96EFF;
        case 
15: TEAM_CIVILIAN: return COLOR_WHITE;
        case 
16: TEAM_RIFA: return 0x1682D959;
        case 
17: TEAM_RussianMafia: return COLOR_RussianMafia;
    }
    return -
1;
} 
PHP код:
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11599) : warning 215: expression has no effect
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11599) : error 001: expected token: ";", but found ":"
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : warning 225: unreachable code
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 014: invalid statement; not in switch
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : warning 215: expression has no effect
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 001: expected token: ";", but found ":"
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 029: invalid expression, assumed zero
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : fatal error 107: too many error messages on one line 



Re: Case error help - Vince - 11.11.2014

You use either "case 0:" or "case TEAM_VAGOS:", not a combination of both.


Re: Case error help - Cr3dO - 11.11.2014

what is the combination? Can you fix the code?


Re: Case error help - Stinged - 11.11.2014

Just remove 0: or TEAM_VAGOS: ect..


Re: Case error help - Cr3dO - 11.11.2014

thank