SA-MP Forums Archive
[Help]automatic gates - 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: [Help]automatic gates (/showthread.php?tid=200122)



[Help]automatic gates - yvoms - 17.12.2010

hello im making automatic gates with the guide from wiki:
https://sampwiki.blast.hk/wiki/Automatic_Gates
But i get these errors..
pawn Код:
(315) : error 017: undefined symbol "c_gate_status"
Line :
if(c_gate_status)MoveObject(mygate,96.619323730469,1921.5258789063,17.832668304443,1);



(313) : warning 204: symbol is assigned a value that is never used: "mygate_status"
Line:
if(IsPlayerInRangeOfPoint(i,10.0,96.61932373,1921.52587891,17.83266830))mygate_status=1;
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

Please help me out since i am new to pawno,
need more info just ask me


Re: [Help]automatic gates - Ash. - 17.12.2010

I dont want to sound big headed or whatever, but checkout some of the gate systems already on the forums, mine is in my signature.

And, you never created "c_gate_status"


Re: [Help]automatic gates - gr56 - 17.12.2010

About second error "symbol is assigned a value that is never used": use this value or just delete "mygate_status=1;"