error 002: only a single statement (or expression) can follow each "case"
#6

Quote:
Originally Posted by aoky
Посмотреть сообщение
Nope, I still get the error.
PHP код:
RespawnInDM(playerid

    switch(
DMZone[playerid]) 
    { 
        case 
1// First DM 
        

            new 
rand1 random(sizeof(DeathmatchLVPD)); 
            
CreateDM
            
playeridDeathmatchLVPD[rand1][0], DeathmatchLVPD[rand1][1], DeathmatchLVPD[rand1][2], DeathmatchLVPD[rand1][3], 1001002425301); // each DM has to get it's own zone ID. 
        

        case 
2// Second DM 
        

            new 
rand1 random(sizeof(DeathmatchJeffersonMotel)); 
            
CreateDM
            
playeridDeathmatchJeffersonMotel[rand1][0], DeathmatchJeffersonMotel[rand1][1], DeathmatchJeffersonMotel[rand1][2], DeathmatchJeffersonMotel[rand1][3], 10010024251501); 
        } 
    }
//here must need } to close it
    
return 1

umm...have you add } at there i comment

i added, you can try it
or another err?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)