SA-MP Forums Archive
[Ajuda] Erros no script - 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] Erros no script (/showthread.php?tid=462078)



Erros no script - Granmilk - 05.09.2013

й o seguinte pessoal estava mexendo no script do meu server e modifiquei algumas frases que aparecem la no topo automaticamente a na hora que fui compilar deu esse erro

Код:
(17358) : error 029: invalid expression, assumed zero
(17358) : warning 215: expression has no effect
(17358) : error 001: expected token: ";", but found ")"
(17358) : error 029: invalid expression, assumed zero
(17358) : fatal error 107: too many error messages on one line
e essa e a parte que deu erro

Код:
PlayerAfkTicks[i] ++;
}
else
{
PlayerAfkTicks[i] = 0;
}
PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];

if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60); (essa linha)
{
AFK[i]= 1;
SendClientMessage(i, 0x11B1FFAA, "Vocк foi impedido de upar!");
SetPlayerVirtualWorld(i, 1);
SetCameraBehindPlayer(i);
TogglePlayerControllable(i,0);
TextDrawShowForPlayer(i,AfkText);
TextDrawShowForPlayer(i,AfkBackText);
}
obrigado


Re: Erros no script - darkxdll - 05.09.2013

um "if" , com ";" no final ? WTF .

if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60);


Re: Erros no script - Granmilk - 05.09.2013

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
um "if" , com ";" no final ? WTF .

if(PlayerAfkTicks[i] == MAX_IDLE_TIME*60);
Kkkkkkkk mlz, mesmo assim com ou sem da o mesmo erro mais eu ja fui la e tirei


Re: Erros no script - darkxdll - 05.09.2013

Sгo os mesmos erros na mesma linha ?


Re: Erros no script - Granmilk - 05.09.2013

Quote:
Originally Posted by darkxdll
Посмотреть сообщение
Sгo os mesmos erros na mesma linha ?
Sim sao os mesmos


Re: Erros no script - PT - 05.09.2013

Tenta

pawn Код:
PlayerAfkTicks[i] ++;
}
else
{
    PlayerAfkTicks[i] = 0;
}
PlayerLastPos[i][LastX] = PlayerCurrentPos[0];
PlayerLastPos[i][LastY] = PlayerCurrentPos[1];
PlayerLastPos[i][LastZ] = PlayerCurrentPos[2];

if(PlayerAfkTicks[i] == MAX_IDLE_TIME*120)
{
    AFK[i]= 1;
    SendClientMessage(i, 0x11B1FFAA, "Vocк foi impedido de upar!");
    SetPlayerVirtualWorld(i, 1);
    SetCameraBehindPlayer(i);
    TogglePlayerControllable(i,0);
    TextDrawShowForPlayer(i,AfkText);
    TextDrawShowForPlayer(i,AfkBackText);
}