Object pos
#1

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

Reply
#2

Код:
==
and btw
http://forum.sa-mp.com/index.php?topic=102988.0
Reply
#3

Oh crap how dumb of me, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)