[Ajuda] expected token/ invalid expression/unreachable code - 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: [Ajuda] expected token/ invalid expression/unreachable code (
/showthread.php?tid=550280)
expected token/ invalid expression/unreachable code -
SukMathcuck - 11.12.2014
Rapidamente resolvido!
Re: expected token/ invalid expression/unreachable code -
JonathanFeitosa - 11.12.2014
nгo й
( parкntese e sim
{.
Re: expected token/ invalid expression/unreachable code -
MultiKill - 11.12.2014
Vocк estб usando parenteses no lugar da chave:
pawn Код:
else
( // erro aqui 43608 -- 43609
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк jб criou um cone. (/rcone para retira-lo)"); // e aqui
return 1; // aqui
)
//Para
else
{ // erro aqui 43608 -- 43609
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк jб criou um cone. (/rcone para retira-lo)"); // e aqui
return 1; // aqui
}
Re: expected token/ invalid expression/unreachable code -
SukMathcuck - 11.12.2014
vlw Jonathan, sou um otario, '. vlw os dois
Re: expected token/ invalid expression/unreachable code -
zNaNKinG - 11.12.2014
tenta ae
Код:
if (!strcmp(cmdtext, "/cone", true))
{
if (IsAMilitares(playerid))
{
if (Cone[playerid] == 0)
{
new Float: x,
Float: y,
Float: z;
GetPlayerPos(playerid, x, y, z);
Cone[playerid] = CreateObject(1237, x, y, z, 0.0, 0.0, 0.0);
SetPlayerPos(playerid, x, y, z + 3);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Vocк jб criou um cone. (/rcone para retira-lo)");
return 1; // aqui
}// aqui
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "ERRO: Acesso restrito apenas aos militares.");
}
return 1;
}