Need help gate Zcmd... - 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: Need help gate Zcmd... (
/showthread.php?tid=401002)
Need help gate Zcmd... -
Lynet - 21.12.2012
Hey i gets this error when i Compiler the it in pawno
PHP код:
error 029: invalid expression, assumed zero
what is the error...
---------
Here is the gate script.
PHP код:
#include <a_samp>
new Gate;
public OnGameModeInit()
{
Gate = CreateObject(7657, 2234, 2215.39, 14.30, 0.0, 0.0, 0.0, 300.0);
return 1;
}
CMD:open(playerid, params[])
{
if( == && !IsObjectMoving(Gate) && IsPlayerInRangeOfPoint(playerid, 5999, 2234, 2215.39, 14.30))
{
MoveObject(Gate, 2222.69, 2203.89, 14.30, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}
CMD:close(playerid, params[])
{
if( == && !IsObjectMoving(Gate) && IsPlayerInRangeOfPoint(playerid, 5000, 2222.69, 2203.89, 14.30))
{
MoveObject(Gate, 2234, 2215.39, 14.30, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}
Re: Need help gate Zcmd... -
LarzI - 21.12.2012
Offtopic: Why do people keep using PHP-code, without even considering to try out [pawn] tags instead.
Ontopic:
This is why.
Re: Need help gate Zcmd... -
DaRk_RaiN - 21.12.2012
pawn Код:
#include <a_samp>
new Gate;
public OnGameModeInit()
{
Gate = CreateObject(7657, 2234, 2215.39, 14.30, 0.0, 0.0, 0.0, 300.0);
return 1;
}
CMD:open(playerid, params[])
{
if(!IsObjectMoving(Gate) && IsPlayerInRangeOfPoint(playerid, 5999, 2234, 2215.39, 14.30))
{
MoveObject(Gate, 2222.69, 2203.89, 14.30, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}
CMD:close(playerid, params[])
{
if( !IsObjectMoving(Gate) && IsPlayerInRangeOfPoint(playerid, 5000, 2222.69, 2203.89, 14.30))
{
MoveObject(Gate, 2234, 2215.39, 14.30, 3.0, 0.0, 0.0, 0.0);
return 1;
}
}