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


Messages In This Thread
Object pos - by Klutty - 07.08.2009, 22:58
Re: Object pos - by Jefff - 07.08.2009, 23:10
Re: Object pos - by Klutty - 07.08.2009, 23:12

Forum Jump:


Users browsing this thread: 1 Guest(s)