Auto Gates script problem
#1

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..
Reply
#2

fast people i need help please..
Reply
#3

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
Reply
#4

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.
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)