[Ajuda] only a single statement (or expression) can follow each "case"
#5

Quote:
Originally Posted by Cycle
Посмотреть сообщение
Faltou vocк fechar a chave da verificaзгo da current trabalhos, e a abertura do switch.
Tente assim:
PHP код:
public OnPlayerSelectedMenuRow(playerid,row

new 
Menu:current
current=GetPlayerMenu(playerid); 
if(
current==Trabalhos

switch(
row

case 
0:{ 
TogglePlayerControllable(playerid1); 
SetPlayerTeam(playerid,TEAM_Caminhoneiro); 
TogglePlayerControllable(playerid1); 

case 
1:{ 
if(
gTeam[playerid]==TEAM_Lixeiro
TogglePlayerControllable(playerid1); 
SetPlayerTeam(playerid,TEAM_Lixeiro); 
TogglePlayerControllable(playerid1); 
}  
}

PHP код:
C:\Users\Ailton\Downloads\samp037_svr_R2-1-1_win32 (1)\gamemodes\megax.pwn(230) : error 030compound statement not closed at the end of file (started at line 210
O erro de antes foi apagado , mas este apareceu
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)