Gate Command - Crashes Server - 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: Gate Command - Crashes Server (
/showthread.php?tid=450443)
Gate Command - Crashes Server -
Jay_Dixon - 13.07.2013
Yeah, so this little command crashes my server for some reason. Since you guys are so good at helping, i figured i'd come here after my 2billionth attempt, what's crashing it exactly? i've done everything right here so far :S
pawn Код:
dcmd_dx(playerid, cmdtext[]) {
#pragma unused cmdtext
if(IsPlayerInRangeOfPoint(playerid, 16, 1144.68, -1274.82, 12.63))
{
if(dxgatestate == 0)
{
MoveObject(dxgate, 1135.52, -1274.40, 12.63);
dxgatestate = 1;
}
else if(dxgatestate == 1)
{
MoveObject(dxgate, 1144.68, -1274.82, 12.63);
dxgatestate = 0;
}
}
return 1;
}