Case error help
#1

PHP код:
stock GetTeamZoneColor(teamid)
{
    switch(
teamid)
    {
    
11599-     case 0TEAM_VAGOS: return 0xFFFF0088;
    
11600-    case 1TEAM_GROVE: return 0x00FF0088;
        case 
2TEAM_BALLAS: return 0xFF00FF88;
        case 
3TEAM_VAGOS: return 0xF5BE1880;
        case 
4TEAM_AZTECAS: return COLOR_LIGHTBLUE;
        case 
5TEAM_TRIADS: return TRIAD_COLOR;
        case 
6TEAM_DANANGBOYS: return DANANGBOYS_COLOR;
        case 
7TEAM_CRIPZ: return CRIPZ_COLOR;
        case 
8TEAM_LSPD: return POLICE_COLOR;
        case 
9TEAM_TheRockStars: return 0xE60000FF;
        case 
10TEAM_SPECIALFORCE: return 0xC3AF00FF;
        case 
11TEAM_ASIANTRIADS: return 0xFF80003E;
        case 
12TEAM_MS13: return COLOR_MS13;
        case 
13TEAM_CozaNostra: return CozaNostra_COLOR;
        case 
14TEAM_ALQ: return 0xF0B96EFF;
        case 
15TEAM_CIVILIAN: return COLOR_WHITE;
        case 
16TEAM_RIFA: return 0x1682D959;
        case 
17TEAM_RussianMafia: return COLOR_RussianMafia;
    }
    return -
1;

PHP код:
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11599) : warning 215expression has no effect
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11599) : error 001expected token";"but found ":"
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : warning 225unreachable code
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 014invalid statementnot in switch
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : warning 215expression has no effect
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 001expected token";"but found ":"
D:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : error 029invalid expressionassumed zero
D
:\Olcay\[NEW0.5]Outlaw\gamemodes\Credo.pwn(11600) : fatal error 107too 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: 1 Guest(s)