SA-MP Forums Archive
Error 030 - 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: Error 030 (/showthread.php?tid=502196)



Error 030 - DATBasar - 22.03.2014

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

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" Blank Filterscript by your name here");
print("--------------------------------------\n");
return 1;
}

public OnFilterScriptExit()
{
return 1;
}

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif


public OnPlayerCommandText(playerid, cmdtext[])
{
if (!strcmp("/racetrack",cmdtext,true))
{
SetPlayerInterior(playerid,0);
if (GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
LinkVehicleToInterior(GetPlayerVehicleID(playerid) ,0);
SetVehiclePos(GetPlayerVehicleID(playerid),-521.0,-3643.0,7.0);
SetVehicleZAngle(GetPlayerVehicleID(playerid),0.0) ;
}
else
{
SetPlayerPos(playerid,-521.0,-3643.0,7.0);
SetPlayerFacingAngle(playerid,0.0);
}
return 1;
}

error 030 : compound statement not closed at the end of file (started at line 36)


Re: Error 030 - MP2 - 22.03.2014

Indent. Then you'll find your missing bracket.