script help
#1

help i ceep getin this error when i try to compile my script

E:\Games\GTA SAMP MY MOD\GTA San Andreas server 3.0a\filterscripts\LVarmybaselifts.pwn(94) : error 030: compound statement not closed at the end of file (started at line 86)
Reply
#2

Show the code.
Reply
#3

isnt code 030 jus one of these!!

}
Reply
#4

thats it
Reply
#5

it the last line of the code 1 sec its

MoveObject(elevator2, 2242.447265 , 2483.080322 , 37.681751,3.0);
SendClientMessage(playerid, 0xFF8000FF, "Elevator going up");
}

{
SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
}
return 1;
}
Reply
#6

i get it even if i put

{
return1;
}

or

}
return1;
}

or

{
return1;
{
Reply
#7

Show the whole code..
Reply
#8

new obj; // Somewhere at the top of your script
public OnGameModeInit()
{
obj = CreateObject(980, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(strcmp(cmdtext, "/moveobject", true) == 0)
{
MoveObject(obj, 0, 0, 10, 2.00);
return 1;
}
return 0;
}
Reply
#9

edit that code bud it should work
Reply
#10

Код:
#include <a_samp>
new elevator;
new elevator2;

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Army Lift by kintama");
	print("--------------------------------------\n");
	return 1;
}

public OnFilterScriptExit()
{
	return 1;
}

#else

main()
{
	print("\n----------------------------------");
	print(" Army Lift by kintama");
	print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	elevator = CreateObject(986, 2495.8405761719, 2772.4428710938, 17.055965423584, 89.32373046875, 358.01501464844, 271.94494628906);
	elevator2 = CreateObject(986, 2499.08203125, 2772.4350585938, 17.055965423584, 89.32373046875, 358.01501464844, 92.578247070313);
  }

public OnPlayerCommandText(playerid, cmdtext[])
{
	 if(!strcmp("/e1down", cmdtext, true))
		 {
	 	//cops onlys
	 	{
 		MoveObject(elevator, 2241.456542 , 2483.041748 , 9.322299,3.0);
		SendClientMessage(playerid, 0xFF8000FF, "Elevator going down");
		}

		{
		SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
 		}
		return 1;
		}
	 if(!strcmp("/e1up", cmdtext, true))
	 	{
	 	//cops onlys
	 	{
 		MoveObject(elevator, 2242.447265 , 2483.080322 , 37.681751,3.0);
		SendClientMessage(playerid, 0xFF8000FF, "Elevator going up");
		}

	 	{
		SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
		return 1;
		}

	 if(!strcmp("/e1down", cmdtext, true))
    {
	 	//cops onlys
	 	{
 		MoveObject(elevator2, 2241.456542 , 2483.041748 , 9.322299,3.0);
		SendClientMessage(playerid, 0xFF8000FF, "Elevator going down");
		}

    {
		SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
 		}
		return 1;
		}
   if(!strcmp("/e1up", cmdtext, true))
	 	{
	 	//cops onlys
	 	{
 		MoveObject(elevator2, 2242.447265 , 2483.080322 , 37.681751,3.0);
		SendClientMessage(playerid, 0xFF8000FF, "Elevator going up");
		}

	 	{
		SendClientMessage(playerid,0x00FF00FF,"You must be in the Army to use this command.");
	}
	return 1;

	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)