Case error help
#1

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 
Reply
#2

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

what is the combination? Can you fix the code?
Reply
#4

Just remove 0: or TEAM_VAGOS: ect..
Reply
#5

thank
Reply


Forum Jump:


Users browsing this thread: