02.07.2013, 17:35
Hello guys,
i have some problems whit a filterscript, the game crash when i go to login. (After 0.2 sec. lol)
Pls help me
Filterscript:
Sorry for my bad english
i have some problems whit a filterscript, the game crash when i go to login. (After 0.2 sec. lol)
Код:
SA-MP 0.3x-R1-2 Exception At Address: 0x0044A503 Base: 0x036A0000 Registers: EAX: 0x00000000 EBX: 0x00000800 ECX: 0x0943E124 EDX: 0x0085BB2B ESI: 0x0943E124 EDI: 0x0943E124 EBP: 0x0023FD98 ESP: 0x0023FCF4 EFLAGS: 0x00010206 Stack: +0000: 0x082328EC 0x0023FD98 0x00448B16 0x082328EC +0010: 0x005A2B71 0x005A2B7F 0x00000000 0x082328EC +0020: 0x00000800 0xFFFFFFFF 0x00000000 0x00000000 +0030: 0x00000000 0x00000000 0x00000000 0x00000000 +0040: 0x08200081 0x0825DC90 0x0086D168 0x0056872C +0050: 0x00000001 0xC208CD19 0x00000187 0x0053C09A +0060: 0x0000001A 0xC208AC03 0x00000000 0x018BA454 +0070: 0x03719926 0xC208AC03 0x037059E6 0x0000001A +0080: 0xC208AC03 0x00000000 0x0C9CBAD0 0x0023FD70 +0090: 0x0023F874 0x0023FF7C 0x0374FA14 0x03772710 +00A0: 0x00000001 0x757A9FD7 0x0053E986 0x00000001 +00B0: 0x0023FDB4 0x0023FDAC 0x0053ECC2 0x00000001 +00C0: 0x00619B71 0x0000001A 0x00000001 0x00000001 +00D0: 0x0000000A 0x00748DA0 0x0000001A 0x00000001 +00E0: 0x75A6174A 0x00000000 0x0023FF8C 0x7FFDF000 +00F0: 0x01590000 0x4F42089B 0x01590F08 0x00000008 +0100: 0x00000100 0x00000008 0x00000102 0x43C80000 +0110: 0x43960000 0x00000000 0x00000000 0x00000320 +0120: 0x00000258 0x00000000 0x00000001 0x004F083E +0130: 0x00000200 0x00000000 0x012E018F 0x0BDF140A +0140: 0x0000018F 0x0000012E 0x0000002C 0x0023FE30 +0150: 0x00825EA4 0x0023FF7C 0x00825EA4 0x75A6174A +0160: 0x7FFDF000 0x00821D17 0x00835342 0x00000065 +0170: 0x0023FF8C 0x008246F1 0x00400000 0x00000000 +0180: 0x01821F06 0x0000000A 0x00000094 0x00000006 +0190: 0x00000002 0x000023F0 0x00000002 0x00000000 +01A0: 0x00000000 0x00000000 0x00000000 0x00000000 +01B0: 0x00000000 0x00000000 0x00000000 0x00000000 +01C0: 0x00000000 0x00000000 0x00000000 0x00000000 +01D0: 0x00000000 0x00000000 0x00000000 0x00000000 +01E0: 0x00000000 0x00000000 0x00000000 0x00000000 +01F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0200: 0x00000000 0x00000000 0x00000000 0x00000000 +0210: 0x00000000 0x00000000 0x00824588 0x00000000 +0220: 0x00000000 0x7FFDF000 0xC0000005 0x00000000 +0230: 0x01821F06 0x00000044 0x0182BE68 0x0183F1B0 +0240: 0x01833610 0x00000000 0x00000000 0x00000000 +0250: 0x00000000 0x00000000 0x00000000 0x00000000 +0260: 0x00000000 0x00000000 0x00000000 0xFFFFFFFF +0270: 0xFFFFFFFF 0xFFFFFFFF 0x00000000 0x00000000 SCM Op: 0x248, lDbg: 0 LastRendObj: 0 Game Version: US 1.0 State Information: Ped Context: 0
Filterscript:
PHP код:
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
#include <a_samp>
#include <core>
#include <float>
#pragma tabsize 0
#define COLOUR_GREEN (0x00FF00AA)
#define COLOR_DIS_RED 0xFF0000FF
#define COLOR_BLUE 0x0000BBAA
new cancprincipale;//cancello principale
new gatemoto;//Cancello per le moto
new hangar;//hangar hydra
new
iColour = COLOUR_GREEN;
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 OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("NERD COMPANY 2013");
AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
//152651561
//cimitero base 1.0
CreateObject(16375, 387.60156, 2525.54688, 15.66406, 356.85840, 0.00000, 3.14159); //helipad
CreateObject(16375, 403.94775, 2525.47998, 15.64553, 0.00000, 0.00000, 0.00000); //helipad
CreateObject(16375, 419.07059, 2525.30371, 15.64553, 0.00000, 0.00000, 0.00000); //helipad
//Oggetti Base cimitero
CreateObject(4832,414.1000100,2553.8999000,46.9000000,0.0000000,0.0000000,269.2500000); //object(airtwer_las) (1)
CreateObject(16098,238.2000000,2544.1999500,20.8000000,0.0000000,0.0000000,270.0000000); //object(des_by_hangar_) (1)
CreateObject(8355,454.2000100,2491.6999500,18.2000000,0.0000000,90.0000000,174.0000000); //object(vgssairportland18) (1)
CreateObject(8355,387.1000100,2388.3999000,18.0000000,0.0000000,90.0000000,119.9940000); //object(vgssairportland18) (3)
CreateObject(8355,258.2000100,2353.8000500,18.0000000,0.0000000,90.0000000,89.9930000); //object(vgssairportland18) (4)
CreateObject(8355,121.0000000,2365.8000500,18.0000000,0.0000000,90.0000000,79.9890000); //object(vgssairportland18) (5)
CreateObject(8355,-6.9000000,2412.3999000,18.0000000,0.0000000,90.0000000,59.9860000); //object(vgssairportland18) (6)
CreateObject(8355,-51.5000000,2575.3999000,18.0000000,0.0000000,90.0000000,270.9830000); //object(vgssairportland18) (8)
CreateObject(8355,-51.5000000,2575.3999000,55.3000000,0.0000000,90.0000000,270.9830000); //object(vgssairportland18) (9)
CreateObject(8355,81.3000000,2603.6001000,18.0000000,0.0000000,90.0000000,292.9830000); //object(vgssairportland18) (10)
CreateObject(8355,81.3000000,2603.6001000,55.3000000,0.0000000,90.0000000,292.9780000); //object(vgssairportland18) (11)
CreateObject(8355,208.6000100,2657.6001000,18.0000000,0.0000000,90.0000000,292.9780000); //object(vgssairportland18) (13)
CreateObject(8355,208.6000100,2657.6001000,55.3000000,0.0000000,90.0000000,292.9780000); //object(vgssairportland18) (15)
CreateObject(8355,330.1000100,2646.6999500,18.0000000,0.0000000,90.0000000,236.7280000); //object(vgssairportland18) (14)
CreateObject(8355,330.1000100,2646.6999500,55.3000000,0.0000000,90.0000000,236.7280000); //object(vgssairportland18) (16)
CreateObject(8355,404.2999900,2598.6001000,6.1000000,90.0000000,90.0000000,236.7280000); //object(vgssairportland18) (20)
CreateObject(8355,438.3999900,2577.8999000,6.1000000,90.0000000,90.0000000,240.7280000); //object(vgssairportland18) (21)
CreateObject(8355,444.7999900,2574.1999500,6.1000000,90.0000000,90.0000000,240.7270000); //object(vgssairportland18) (24)
CreateObject(8355,455.2999900,2499.0000000,55.2000000,0.0000000,90.0000000,173.9960000); //object(vgssairportland18) (27)
CreateObject(8355,454.6000100,2495.8999000,18.2000000,0.0000000,90.0000000,173.9960000); //object(vgssairportland18) (29)
CreateObject(8240,336.0000000,2441.6999500,29.1000000,0.0000000,0.0000000,0.0000000); //object(vgssbighanger1) (1)
//Gate
hangar = CreateObject(8378,336.0000000,2474.8000500,25.4000000,0.0000000,0.0000000,0.0000000); //object(vgsbighngrdoor) (2)
gatemoto = CreateObject(16501,430.0000000,2546.3994100,17.4000000,0.0000000,0.0000000,0.0000000); //object(cn2_savgardr2_) (1)
cancprincipale = CreateObject(8355,-93.7000000,2510.6001000,18.0000000,0.0000000,90.0000000,22.9850000); //object(vgssairportland18) (7)
//Veicoli base
AddStaticVehicleEx(425,365.6000100,2538.8000500,17.5000000,0.0000000,95,10,15); //Hunter
AddStaticVehicleEx(563,380.8999900,2538.8000500,17.4000000,0.0000000,245,245,15); //Raindance
AddStaticVehicleEx(425,396.0000000,2540.0000000,17.4000000,0.0000000,95,10,15); //Hunter
AddStaticVehicleEx(520,309.1000100,2422.3000500,17.6000000,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,327.3999900,2421.0000000,17.6000000,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(520,345.2999900,2436.6001000,17.6000000,0.0000000,-1,-1,15); //Hydra
AddStaticVehicleEx(447,419.5000000,2444.6999500,16.6000000,24.0000000,32,32,15); //Seasparrow
AddStaticVehicleEx(447,390.1000100,2443.6999500,16.6000000,334.0000000,32,32,15); //Seasparrow
AddStaticVehicleEx(562,421.5000000,2469.8999000,16.3000000,290.0000000,53,54,15); //Elegy
AddStaticVehicleEx(562,385.8999900,2470.1999500,16.3000000,329.9950000,53,54,15); //Elegy
AddStaticVehicleEx(495,407.7000100,2445.3000500,17.1000000,0.0000000,134,68,15); //Sandking
AddStaticVehicleEx(495,402.1000100,2445.3000500,17.1000000,0.0000000,134,68,15); //Sandking
AddStaticVehicleEx(482,420.6000100,2463.6001000,16.8000000,288.0000000,124,27,15); //Burrito
AddStaticVehicleEx(411,387.2999900,2463.3000500,16.3000000,336.0000000,34,52,15); //Infernus
AddStaticVehicleEx(411,387.6000100,2455.6001000,16.3000000,335.9950000,34,52,15); //Infernus
AddStaticVehicleEx(451,398.6000100,2444.0000000,16.3000000,0.0000000,145,115,15); //Turismo
AddStaticVehicleEx(602,412.2000100,2445.0000000,16.4000000,0.0000000,32,32,15); //Alpha
AddStaticVehicleEx(522,440.7000100,2543.1999500,15.8000000,86.0000000,132,4,15); //NRG-500
AddStaticVehicleEx(522,440.6000100,2550.0000000,15.8000000,85.9950000,132,4,15); //NRG-500
AddStaticVehicleEx(463,437.7999900,2547.6001000,15.8000000,92.0000000,76,117,15); //Freeway
AddStaticVehicleEx(463,437.7000100,2545.5000000,15.8000000,92.0000000,76,117,15); //Freeway
AddStaticVehicleEx(468,434.6000100,2546.5000000,15.9000000,80.0000000,22,34,15); //Sanchez
return 1;
}
public OnGameModeExit()
{
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)
{
return 1;
}
public OnVehicleDeath(vehicleid, killerid)
{
return 1;
}
public OnPlayerText(playerid, text[])
{
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
//********************************************CANCELLO PRINCIPALE***************************************************
if (strcmp("/obase", cmdtext, true, 10) == 0)
{
MoveObject(cancprincipale,-93.7000000,2510.6001000,-5.8000001907349,0.97);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello aperto. Ricordati di chiudere!");
return 1;
}
if (strcmp("/cbase", cmdtext, true, 10) == 0)
{
MoveObject(cancprincipale,-93.69921875, 2510.599609375, 18,0.97);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello chiuso.");
return 1;
}
//........................................CANCELLO MOTO.............................................................
if (strcmp("/omoto", cmdtext, true, 10) == 0)
{
MoveObject(gatemoto,430.0000000,2546.3994100,12.40,0.97);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello aperto. Ricordati di chiudere!");
return 1;
}
if (strcmp("/cmoto", cmdtext, true, 10) == 0)
{
MoveObject(gatemoto,430.0000000,2546.3994100,17.4000000,1.0);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello chiuso.");
return 1;
}
/*---------------------------------------------------HYDRA------------------------------------------------*/
if (strcmp("/ohangar", cmdtext, true, 10) == 0)
{
MoveObject(hangar,336.0000000,2474.8000500,12.40,1.0);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello aperto. Ricordati di chiudere!");
return 1;
}
if (strcmp("/changar", cmdtext, true, 10) == 0)
{
MoveObject(hangar,336.0000000,2474.8000500,25.4000000,1.0);//This will move the gate
SendClientMessage(playerid,iColour,"[NC:FR]Cancello chiuso.");
return 1;
}
return 0;
}
/*********************************************FINE COMANDI**********************************************/