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

Quote:
Originally Posted by Cycle
Посмотреть сообщение
Switch, comeзa igual a qualquer valor dentro do pawn. Zero, entгo acredito que seria:
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);

Mano, essa versгo sua removeu umas warnings que estavam dando, jб agradeзo, mas ainda fica no erro do "case"
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)