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(playerid, 1);
SetPlayerTeam(playerid,TEAM_Caminhoneiro);
TogglePlayerControllable(playerid, 1);
}
case 1:{
if(gTeam[playerid]==TEAM_Lixeiro)
TogglePlayerControllable(playerid, 1);
SetPlayerTeam(playerid,TEAM_Lixeiro);
TogglePlayerControllable(playerid, 1);
}
}
}
|
PHP код:
C:\Users\Ailton\Downloads\samp037_svr_R2-1-1_win32 (1)\gamemodes\megax.pwn(230) : error 030: compound statement not closed at the end of file (started at line 210)
O erro de antes foi apagado
, mas este apareceu