All server player crashes.
#1

hello,

i have a problem,
all my server players get's crashed randomly,
i don't know why...
and i don't know how to fix it, so I added to all functions "print",

i think that its DestroyVehicle problem,
is it possible, that DestroyVehicle crashes players?
because im destroying all players cars in this function:
Code:
forward DUOTI_NRG(playerid);
public DUOTI_NRG(playerid)
	{
    print("public DUOTI_NRG");
    DestroyVehicle(ZAIDEJO_INFERNUS[playerid]);ZAIDEJO_INFERNUS[playerid]=0;
    DestroyVehicle(ZAIDEJO_ELEGY[playerid]);ZAIDEJO_ELEGY[playerid]=0;
    DestroyVehicle(ZAIDEJO_SULTAN[playerid]);ZAIDEJO_SULTAN[playerid]=0;
    DestroyVehicle(ZAIDEJO_JETMAX[playerid]);ZAIDEJO_JETMAX[playerid]=0;
    DestroyVehicle(ZAIDEJO_SANDKING[playerid]);ZAIDEJO_SANDKING[playerid]=0;
		if( ZAIDEJO_NRG[playerid] > 0 )
		{
			if(GetPlayerVehicleID(playerid) != ZAIDEJO_NRG[playerid])
			{
				if(IsPlayerInAnyVehicle(playerid))
				{
					RemovePlayerFromVehicle(playerid);
				}
				new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
				GetPlayerPos(playerid, X, Y, Z);
				GetPlayerFacingAngle(playerid, Ang);
				GetPlayerName(playerid, Name, sizeof( Name ));
				PutPlayerInVehicle(playerid, ZAIDEJO_NRG[playerid], 0);
				SetVehiclePos(ZAIDEJO_NRG[playerid], X, Y, Z);
				SetVehicleZAngle(ZAIDEJO_NRG[playerid], Ang);
				SetVehicleHealth(ZAIDEJO_NRG[playerid], 1000.0);
				LinkVehicleToInterior(ZAIDEJO_NRG[playerid], GetPlayerInterior(playerid));
				SetVehicleVirtualWorld(ZAIDEJO_NRG[playerid], GetPlayerVirtualWorld(playerid));
				PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
			}
			else
			{
				SendClientMessage(playerid,COLOR_RED, "You are already on your personal nrg.");
			}
		}
		else
		{
			if(IsPlayerInAnyVehicle(playerid))
			{
				RemovePlayerFromVehicle(playerid);
			}
			new Float: X, Float: Y, Float: Z, Float: Ang, Name[30];
			GetPlayerPos(playerid, X, Y, Z);
			GetPlayerFacingAngle(playerid, Ang);
			GetPlayerName(playerid, Name, sizeof( Name ));
			ZAIDEJO_NRG[playerid] = CreateVehicle(522, X, Y , Z, Ang, 75,3, 5000000);
			PutPlayerInVehicle(playerid, ZAIDEJO_NRG[playerid], 0);
			LinkVehicleToInterior(ZAIDEJO_NRG[playerid], GetPlayerInterior(playerid));
			SetVehicleVirtualWorld(ZAIDEJO_NRG[playerid], GetPlayerVirtualWorld(playerid));
			printf("personal nrg created for %s.", Name);
			PlayerPlaySound(playerid, 1085, 0.0, 0.0, 0.0);
			SetVehicleParamsForPlayer(ZAIDEJO_NRG[playerid], playerid, 0, 0);
			for(new i=0; i <= MAX_SERVER_PLAYERS; i++)
			{
				if ( IsPlayerConnected(i) )
				{
					if ( i != playerid )
					{
						SetVehicleParamsForPlayer(ZAIDEJO_NRG[playerid], i, 0, 1);
					}
				}
			}
		}
		//if(PlayerInfo[playerid][pSTUNT] >= 1) return STUNT_zonos(playerid);
		return 1;
}
and this function is in server_log,
this is my server_log.txt file:
Code:
[17:48:00] Komanda raso: Hepan444 (/car)
[17:48:01] public OnPlayerRequestSpawn
[17:48:01] public OnPlayerExitVehicle
[17:48:01] public OnPlayerSpawn
[17:48:01] public MaratonasRotation
[17:48:01] public OnPlayerEnterVehicle
[17:48:01] Komanda raso: Karolis_Skrickus (/car)
[17:48:01] public OnPlayerEnterVehicle
[17:48:02] public PakeistiDMzona
[17:48:02] KeistiKovosZona
[17:48:02] public OnPlayerExitVehicle
[17:48:02] public OnPlayerEnterVehicle
[17:48:02] public OnPlayerEnterVehicle
[17:48:02] public OnPlayerEnterVehicle
[17:48:02] public PakeistiSKYzona
[17:48:02] KeistiSKYZona
[17:48:03] public OnPlayerSelectedMenuRow
[17:48:03] public OnPlayerSelectedMenuRow CARS
[17:48:03] public DUOTI_JETMAX
[17:48:03] personal JETMAX created for Hepan444.
[17:48:04] public OnPlayerDeath
[17:48:04] [kill] w00tek_ killed Andrejus_Litusis Desert Eagle
[17:48:04] public OnPlayerSelectedMenuRow
[17:48:04] public OnPlayerSelectedMenuRow CARS
[17:48:04] public DUOTI_NRG
[17:48:04] personal nrg created for Karolis_Skrickus.
[17:48:04] public All
[17:48:06] public OnPlayerExitVehicle
[17:48:06] public OnPlayerExitVehicle
[17:48:07] public OnPlayerExitVehicle
[17:48:07] public PakeistiDerbyZona
[17:48:07] KeistiDerbyZona
[17:48:08] public OnPlayerSpawn
[17:48:08] public OnPlayerExitVehicle
[17:48:09] public OnPlayerEnterVehicle
[17:48:09] [chat] [Andrejus_Litusis]: cytai ax
[17:48:09] public OnPlayerText
[17:48:11] public OnPlayerEnterVehicle
[17:48:11] Komanda raso: Andrejus_Litusis (/sf)
[17:48:13] Komanda raso: MarcioX_Maladiec (/drag)
[17:48:13] prisijungtidrag
[17:48:13] tikraiprisijungtidrag
[17:48:13] public SetdragCheckpoint
[17:48:13] public OnPlayerEnterRaceCheckpoint
[17:48:13] Komanda raso: AnGeL_Karlyz (/sf)
[17:48:13] public OnPlayerEnterVehicle
[17:48:14] Komanda raso: Hepan444 (/car)
[17:48:15] public OnPlayerSelectedMenuRow
[17:48:15] public OnPlayerSelectedMenuRow CARS
[17:48:15] public DUOTI_JETMAX
[17:48:16] public OnPlayerExitedMenu
[17:48:16] public KeiciasiPasaulioLaikas
[17:48:16] Komanda raso: Andrejus_Litusis (/sf)
[17:48:17] public OnPlayerDeath
[17:48:17] [death] Karolis_Skrickus died 255
[17:48:17] public OnPlayerExitedMenu
[17:48:18] [chat] [w00tek_]: duxas krw
[17:48:18] public OnPlayerText
[17:48:30] public OnPlayerDisconnect
[17:48:30] SaugotiZaidejoInformacija
[17:48:30] PaliktiViska
[17:48:30] [part] AnGeL_Karlyz has left the server (3:0)
[17:48:30] Incomming connection: 78.62.111.133:3473
[17:48:32] public OnPlayerDisconnect
[17:48:32] SaugotiZaidejoInformacija
[17:48:32] PaliktiViska
[17:48:32] [part] [BFH]domisz has left the server (18:0)
[17:48:33] public OnPlayerDisconnect
[17:48:33] SaugotiZaidejoInformacija
[17:48:33] PaliktiViska
[17:48:33] [part] Slepa has left the server (7:0)
[17:48:33] public PakeistiSKYzona
[17:48:33] KeistiSKYZona
[17:48:33] public OnPlayerDisconnect
[17:48:33] SaugotiZaidejoInformacija
[17:48:33] PaliktiViska
[17:48:33] [part] AnGeL_DJsuo has left the server (11:0)
[17:48:34] public OnPlayerDisconnect
[17:48:34] SaugotiZaidejoInformacija
[17:48:34] PaliktiViska
[17:48:34] [part] w00tek_ has left the server (2:0)
[17:48:34] public OnPlayerDisconnect
[17:48:34] SaugotiZaidejoInformacija
[17:48:34] PaliktiViska
[17:48:34] [part] _Pamparam has left the server (15:0)
[17:48:34] public OnPlayerDisconnect
[17:48:34] SaugotiZaidejoInformacija
[17:48:34] PaliktiViska
[17:48:34] [part] aur1s has left the server (16:0)
[17:48:35] public All
[17:48:36] public OnPlayerDisconnect
[17:48:36] SaugotiZaidejoInformacija
[17:48:36] PaliktiViska
[17:48:36] [part] Andrejus_Litusis has left the server (17:0)
[17:48:37] public OnPlayerDisconnect
[17:48:37] SaugotiZaidejoInformacija
[17:48:37] PaliktiViska
[17:48:37] [part] [BFH]N1k4s3 has left the server (21:0)
[17:48:37] public OnPlayerDisconnect
[17:48:37] SaugotiZaidejoInformacija
[17:48:37] PaliktiViska
[17:48:37] [part] Paul_Rambo has left the server (4:0)
[17:48:37] public OnPlayerDisconnect
[17:48:37] SaugotiZaidejoInformacija
[17:48:37] PaliktiViska
[17:48:37] [part] rimve has left the server (13:0)
[17:48:38] public OnPlayerDisconnect
[17:48:38] SaugotiZaidejoInformacija
[17:48:38] EndHitman
[17:48:38] PaliktiViska
[17:48:38] [part] Marciukas1 has left the server (8:0)
[17:48:38] Incomming connection: 89.116.30.217:64891
[17:48:38] [join] AnGeL_Karlyz has joined the server (2:89.116.30.217)
[17:48:38] public OnPlayerConnect
[17:48:38] public MySQLCheckBanExistance
[17:48:38] NustatytiZaidejaBeTeamo
[17:48:38] load_mapicon
[17:48:38] public MySQLCheckUserExistance
[17:48:38] public OnPlayerDisconnect
[17:48:38] SaugotiZaidejoInformacija
[17:48:38] PaliktiViska
[17:48:38] [part] pinkiss has left the server (9:0)
[17:48:38] public OnPlayerDisconnect
[17:48:38] SaugotiZaidejoInformacija
[17:48:38] PaliktiViska
[17:48:38] [part] MarcioX_Maladiec has left the server (19:0)
[17:48:40] public OnPlayerDisconnect
[17:48:40] SaugotiZaidejoInformacija
[17:48:40] PaliktiViska
[17:48:40] [part] [CC]ReMiX has left the server (24:0)
[17:48:42] public OnPlayerDisconnect
[17:48:42] SaugotiZaidejoInformacija
[17:48:42] PaliktiViska
[17:48:42] [part] Karolis_Skrickus has left the server (1:0)
[17:48:42] public OnPlayerDisconnect
[17:48:42] SaugotiZaidejoInformacija
[17:48:42] PaliktiViska
[17:48:42] [part] _TNT_mantuxas has left the server (12:0)
[17:48:44] Incomming connection: 88.216.50.125:4419
[17:48:44] [join] Slepa has joined the server (1:88.216.50.125)
[17:48:44] public OnPlayerConnect
[17:48:44] public MySQLCheckBanExistance
[17:48:44] NustatytiZaidejaBeTeamo
[17:48:44] load_mapicon
[17:48:44] public MySQLCheckUserExistance
[17:48:44] public OnPlayerDisconnect
[17:48:44] SaugotiZaidejoInformacija
[17:48:44] PaliktiViska
[17:48:44] [part] Hepan444 has left the server (0:0)
[17:48:46] AtkurtiZaidejoInformacija
[17:48:46] Incomming connection: 78.62.111.133:3474
[17:48:46] [join] [BFH]domisz has joined the server (0:78.62.111.133)
[17:48:46] public OnPlayerConnect
[17:48:46] public MySQLCheckBanExistance
[17:48:46] NustatytiZaidejaBeTeamo
[17:48:46] load_mapicon
[17:48:46] public MySQLCheckUserExistance
[17:48:49] AtkurtiZaidejoInformacija
[17:48:52] Komanda raso: [BFH]domisz (/player)
[17:48:52] public OnPlayerRequestSpawn
[17:48:52] public OnPlayerSpawn
[17:48:54] public OnPlayerDisconnect
[17:48:54] SaugotiZaidejoInformacija
[17:48:54] PaliktiViska
[17:48:54] [part] AnGeL_Karlyz has left the server (2:0)
[17:48:55] Komanda raso: Slepa (/lv)
[17:48:55] Incomming connection: 78.62.116.32:2646
[17:48:55] [join] Marciukas1 has joined the server (2:78.62.116.32)
[17:48:55] public OnPlayerConnect
[17:48:55] public MySQLCheckBanExistance
[17:48:55] NustatytiZaidejaBeTeamo
[17:48:55] load_mapicon
[17:48:55] public MySQLCheckUserExistance
[17:48:55] Incomming connection: 88.216.157.29:3011
[17:48:55] [join] Andrejus_Litusis has joined the server (3:88.216.157.29)
[17:48:55] public OnPlayerConnect
[17:48:55] public MySQLCheckBanExistance
[17:48:55] NustatytiZaidejaBeTeamo
[17:48:55] load_mapicon
[17:48:55] public MySQLCheckUserExistance
[17:48:56] public unlock
[17:48:57] public OnPlayerDisconnect
[17:48:57] SaugotiZaidejoInformacija
[17:48:57] PaliktiViska
[17:48:57] [part] TheChosenOne has left the server (6:0)
[17:48:57] public OnPlayerDisconnect
[17:48:57] SaugotiZaidejoInformacija
[17:48:57] PaliktiViska
[17:48:57] [part] Enrikas_Skulskis has left the server (10:0)
Reply


Messages In This Thread
All server player crashes. - by Reamis - 10.07.2009, 14:02
Re: All server player crashes. - by MenaceX^ - 10.07.2009, 15:15

Forum Jump:


Users browsing this thread: 1 Guest(s)