[Pedido] Alguйm ajuda? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Non-English (
https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (
https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (
https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Pedido] Alguйm ajuda? (
/showthread.php?tid=530148)
Alguйm ajuda? -
Cuelinhu - 05.08.2014
Na hora de compilar o GM da o seguinte:
Код:
C:\Users\user\Desktop\Brasil Novo Mundo\gamemodes\BML.pwn(30112) : error 001: expected token: ";", but found "return"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Parte do GM:
Код:
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1342)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! (/trabalhar)");
return true;
}
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
if(PlayerInfo[giveplayerid][pAdmin] >= 1342 && PlayerInfo[giveplayerid][pAdmin] >= 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!")
return true;
}
SetPlayerArmour(playa, health);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}
if(strcmp(cmd, "/veh", true) == 0)
{
if(IsPlayerConnected(playerid))
{
Pra entenderem qual й a Linha 30112 numerei uma parte:
Код:
30110{
30111 SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!")
30112 return true;
30113 }
30114 SetPlayerArmour(playa, health);
Alguйm me ajuda?
Re: Alguйm ajuda? -
AdrianoStk - 05.08.2014
Код:
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo pode dar colete ao Adm Dono!"); //Esta aqui seu probrema o ;
30112 return true;
30113 }
30114 SetPlayerArmour(playa, health);
Bom acho que isto pode resolver tenta ai e me diz!
Re: Alguйm ajuda? -
Cuelinhu - 05.08.2014
Problema resolvido obrigado, nem tinha reparado nisso.
Re: Alguйm ajuda? -
bruxo00 - 05.08.2014
Para isso й que serve a descriзгo do erro...
PHP код:
expected token: ";", but found "return"Â
Fica a dica