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(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);
}
|
Mano, essa versгo sua removeu umas warnings que estavam dando, jб agradeзo, mas ainda fica no erro do "case"