Object pos - 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)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Object pos (
/showthread.php?tid=90382)
Object pos -
Klutty - 07.08.2009
My code:
pawn Код:
new Float:X, Float:Y, Float:Z;
GetObjectPos(ship, X, Y, Z)
if(X = 2525.469727 && Y = -3387.998779 && Z = 16.037821) // error line
{
SendClientMessageToAll(COLOR_GREEN, "The ship has arrived! Attack!");
}
}
The errors:
Quote:
(770) : error 001: expected token: ";", but found "if"
(770) : warning 211: possibly unintended assignment
(770) : warning 211: possibly unintended assignment
(770) : error 022: must be lvalue (non-constant)
(770) : error 022: must be lvalue (non-constant)
(770) : fatal error 107: too many error messages on one line
|
Re: Object pos -
Jefff - 07.08.2009
and btw
http://forum.sa-mp.com/index.php?topic=102988.0
Re: Object pos -
Klutty - 07.08.2009
Oh crap how dumb of me, thanks.