03.04.2011, 11:03
C:\Documents and Settings\bunyamin\Bureaublad\Ultimate's Roleplay 0.3c\filterscripts\gangdoors.pwn(59) : error 030: compound statement not closed at the end of file (started at line 47) getting this error....
btw i made little like
btw i made little like
Quote:
//=================================// //Gang Door by Cristiano_Ronaldo =// //=================================// #include <a_samp> new Gate; new Gate2; #define KEY_HORN 2 #define COLOR_YELLOW 0xFFFF00AA #if defined FILTERSCRIPT public OnFilterScriptInit() { print("\n--------------------------------------"); print(" Gangdoors Created by Cristiano_Ronaldo"); print("--------------------------------------\n"); return 1; } public OnFilterScriptExit() { return 1; } #else main() { } #endif new obj; // Somewhere at the top of your script public OnGameModeInit() { obj = CreateObject(5020, 2450.3513183594, -1675.4222412109, 14.183507919312, 0, 0, 312); return 1; } public OnPlayerCommandText(playerid, cmdtext[]) { if (strcmp("/go", cmdtext, true, 10) == 0) { MoveObject(Gate, 2450.3513183594,-1675.4222412109,14.183507919312, 3); SendClientMessage(playerid, 0xFFFF00AA,"The Gate is opened.Welcome!"); return 1; } if (strcmp("/gc", cmdtext, true, 10) == 0) { MoveObject(Gate, 2450.3513183594,-1675.4222412109,14.183507919312, 3); SendClientMessage(playerid, 0xFFFF00AA,"The Gate is closed.bye bye!"); return 1; } |