SA-MP Forums Archive
Compiler crashes - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Compiler crashes (/showthread.php?tid=269260)



Compiler crashes - Psycho77 - 15.07.2011

Hey..

At First: sry for my bad english

I have added 3 enums to my script. Now when i want to compile it, the Compiler chrashes.
if I delete one of the 3 enums, the compiler compiled the script succesful. I added the 3 enums to a blanc Filterscript and compiled it.. succesful.. Then i changed the pfad of the .pwn and compiling was succesfull,too.

But why the Compiler not crashes if the .pwn is not in the gamemode folder?

Thanks for Help

Greeze


Re: Compiler crashes - SergiKirov - 15.07.2011

Post the code in the enum that was causing the compiler crash.


Re: Compiler crashes - Psycho77 - 15.07.2011

Here the code of the three enums. I can delete one an the he compiled it.

Код:
enum FVInfo //Fahrzeugverleihe
{
	FVName[35],
	Besitzer[MAX_PLAYER_NAME],
	Modelle,
	Kasse,
	Float:posx,
	Float:posy,
	Float:posz
}

new Rental[3][FVInfo] = {
{"Santa Maria Beach Rental",     "Staat", 3, 0,  532.6616, -1812.9734,  6.5781},
{"LS Helicopter Rental",         "Staat", 2, 0, 1917.6257, -2645.3567, 13.9609},
{"Flugzeugverleih Las Venturas", "Staat", 4, 0, 1319.0847,  1249.3899, 10.8203}
};

enum FVCarInfo //Verleih Cars
{
	FVName[35],
	CName[35],
	modelid,
	Float:posx,
	Float:posy,
	Float:posz,
	Float:posa
}

new Rentcars[15][FVCarInfo] = {
{"Santa Maria Beach Rental", "BF Injection", 424, 560.3359, -1797.2126, 5.7820, 105.5984},
{"Santa Maria Beach Rental", "BF Injection", 424, 558.0027, -1792.6781, 5.6921, 109.1833},
{"Santa Maria Beach Rental", "BF Injection", 424, 555.4010, -1789.0826, 5.6729, 113.3880},
{"Santa Maria Beach Rental", "BF Injection", 424, 552.4193, -1785.9689, 5.6404, 111.4057},
{"Santa Maria Beach Rental", "BF Injection", 424, 548.7025, -1782.2805, 5.6130, 118.3791},
{"Santa Maria Beach Rental", "Bandito",      568, 525.4492, -1795.4731, 5.8308, 256.8979},
{"Santa Maria Beach Rental", "Bandito",      568, 527.8397, -1792.5658, 5.7969, 258.1824},
{"Santa Maria Beach Rental", "Bandito",      568, 529.6094, -1789.8511, 5.7383, 259.0153},
{"Santa Maria Beach Rental", "Bandito",      568, 531.5536, -1786.4900, 5.6897, 259.0707},
{"Santa Maria Beach Rental", "Bandito",      568, 533.4010, -1783.6780, 5.6408, 262.1602},
{"Santa Maria Beach Rental", "Quad",         471, 548.4410, -1792.8199, 5.3906, 125.0467},
{"Santa Maria Beach Rental", "Quad",         471, 546.2768, -1789.0438, 5.3496, 125.1985},
{"Santa Maria Beach Rental", "Quad",         471, 541.8878, -1786.4388, 5.3031, 190.5944},
{"Santa Maria Beach Rental", "Quad",         471, 538.4175, -1789.3203, 5.3404, 234.6113},
{"Santa Maria Beach Rental", "Quad",         471, 536.6401, -1793.5504, 5.3784, 240.5549}
};

enum FVMietInfo //Mietpreis Info
{
	FVName[35],
	CName[35],
	Miietpreis
}

new Rentpreis[3][FVMietInfo] = {
{"Santa Maria Beach Rental", "BF Injection", 200},
{"Santa Maria Beach Rental", "Bandito",      200},
{"Santa Maria Beach Rental", "Quad",         200}
};