script help -
kintama - 08.11.2009
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)
Re: script help -
[XST]O_x - 08.11.2009
Show the code.
Re: script help -
Globe2009 - 08.11.2009
isnt code 030 jus one of these!!
}
Re: script help -
kintama - 08.11.2009
thats it
Re: script help -
kintama - 08.11.2009
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;
}
Re: script help -
kintama - 08.11.2009
i get it even if i put
{
return1;
}
or
}
return1;
}
or
{
return1;
{
Re: script help -
MenaceX^ - 08.11.2009
Show the whole code..
Re: script help -
Globe2009 - 08.11.2009
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;
}
Re: script help -
Globe2009 - 08.11.2009
edit that code bud it should work
Re: script help -
kintama - 08.11.2009
Код:
#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;
}