problem with OnPlayerUpdate - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem with OnPlayerUpdate (
/showthread.php?tid=507866)
problem with OnPlayerUpdate -
Lirbo - 19.04.2014
pawn Код:
public OnPlayerUpdate(playerid)
{
if(LSPDGGOPEN == false){
MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2);
}else{
MoveObject(LSPDGG,1589.6, -1638.3, 10,2);}}
return 1;
}
Error:
pawn Код:
error 010: invalid function or declaration
Line of error:
Re: problem with OnPlayerUpdate -
juandiegox - 19.04.2014
Replace that code for this..
pawn Код:
public OnPlayerUpdate(playerid)
{
if(LSPDGGOPEN == false)
{
MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2);
}
else
{
MoveObject(LSPDGG,1589.6, -1638.3, 10,2);
}
return 1;
}
Re: problem with OnPlayerUpdate -
Lirbo - 19.04.2014
Quote:
Originally Posted by juandiegox
Replace that code for this..
pawn Код:
public OnPlayerUpdate(playerid) { if(LSPDGGOPEN == false) { MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2); } else { MoveObject(LSPDGG,1589.6, -1638.3, 10,2); } return 1; }
|
Thanks alot