SA-MP Forums Archive
Auto Gates script problem - 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: Auto Gates script problem (/showthread.php?tid=431747)



Auto Gates script problem - RCS - 19.04.2013

Hi, iam trying to make auto gates, but i cant do it so i hope you can help me..

im getting this problem, i dont get it why ... i guess everything is alright..
error 001: expected token: "}", but found "{"

heres the code.. where i thinks is the problem..

Код:
enum GateInfo {gateid, Float:closedx, Float:closedy, Float:closedz, Float:rotx, Float:roty, Float:rotz, Float:openx, Float:openy, Float:openz, command[50], gatemodel}
new Gates[MAX_GATES][GateInfo] = {
//Enter you're gates here:
	{1, -760.57293701172, 730.67974853516, 17.14900970459, 0.0, 0.0, 328.23999023438, -767.73754882813, 735.09216308594, 17.14900970459, "/mygate", 969}
	{2, 1240.8000488281, -767.20001220703, 91.400001525879, 0, 0, 0, 1232.5999755859, -767.09997558594, 91.300003051758, "/ldt", 969}

//No more gates past this comment
tnx in advance..


Re: Auto Gates script problem - RCS - 19.04.2013

fast people i need help please..


Re: Auto Gates script problem - MattyG - 19.04.2013

You missed a semi colon at the end of your enum declaration and you've not closed the array off, add another } at the end of the array


Re: Auto Gates script problem - zDivine - 19.04.2013

Copy, and replace this line with the following code.

pawn Код:
enum GateInfo {gateid, Float:closedx, Float:closedy, Float:closedz, Float:rotx, Float:roty, Float:rotz, Float:openx, Float:openy, Float:openz, command[50], gatemodel};
Also, close your array.


Re: Auto Gates script problem - RCS - 20.04.2013

the problem was i didnt put " , " on the end of the first gate. FIXED.