Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2016-12-09, 20:22


Cr3v_

$ chmod -r 666 /root






Wiek: 25
Na forum: 3511 dni
Posty: 33
Nick w MP: [PSR]Driv3r.

Piwa: 2

Respekt: 50

Ostrzeżeń: 60%
Odpalam sobie map? po lekkiej edycji a tu nagle w konsoli pojawia si? crash!

Logi z crashdetect :

20:16:27] [debug] Server crashed while executing --.amx
[20:16] [debug] AMX backtrace:
[20:16] [debug] #0 native mysql_query () [00c67780] from mysql.dll
[20:16] [debug] #1 00077350 in ?? () from --.amx
[20:16] [debug] #2 00003e84 in public zcmd_OnGameModeInit () from PGP.amx
[20:16] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe
[20:16] [debug] #4 000003a8 in public OnGameModeInit () from --.amx
[20:16] [debug] System backtrace:
[20:16] [debug] #0 00c67820 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\mysql.dll
[20:16] [debug] #1 004010b6 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\samp-server.exe
[20:16] [debug] #2 10021c02 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #3 10024056 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #4 1001afcf in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #5 10021c2e in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #6 004746be in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\samp-server.exe
[20:16] [debug] #7 004010b6 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\samp-server.exe
[20:16] [debug] #8 10021c02 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #9 10024056 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #10 1001afcf in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #11 10021c2e in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\plugins\crashdetect.dll
[20:16] [debug] #12 0046f654 in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\samp-server.exe
[20:16] [debug] #13 65646f6d in ?? () from C:\Documents and Settings\xxx\Pulpit\PGP-DM\samp-server.exe


A tu public OnGameModeInit:

public OnGameModeInit()
{
AntyDeAMX();
mysql_connect(SQL_HOST, SQL_USER, SQL_DB, SQL_PASS);

UsePlayerPedAnims();
EnableStuntBonusForAll(0);
DisableInteriorEnterExits();

for(new i = 0; i < sizeof(RandomSpawn); i++)
{
new dynamicPickup[50];
dynamicPickup[i] = CreateDynamicPickup(1314, 1, RandomSpawn[i][0], RandomSpawn[i][1], RandomSpawn[i][2], 0);

CreateDynamic3DTextLabel("{B18904}Nie pami?tasz naszych komend?\n{0489B1}U?yj {DF0101}/cmd", 0x008080FF, RandomSpawn[i][0]+1, RandomSpawn[i][1], RandomSpawn[i][2], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 100.0);
CreateDynamic3DTextLabel("{01DF3A}Zarejestruj sie na {2E2EFE}naszym forum!\n{DF0101}www.-------.pl", 0x008080FF, RandomSpawn[i][0]-1, RandomSpawn[i][1]+1, RandomSpawn[i][2], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 100.0);
CreateDynamic3DTextLabel("{3ADF00}Chcesz aby serwer by? {DF7401}bardziej {3ADF00}popularny?\n{DF0101}ZAPRO? KOLEG?W!", 0x008080FF, RandomSpawn[i][0]-1, RandomSpawn[i][1]-1, RandomSpawn[i][2], 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, 0, -1, -1, 100.0);
}

for(new i, mp = MAX_VEHICLES; i < mp; i++)
{
SetVehicleNumberPlate(i, "-------");
SetVehicleToRespawn(i);
}


for(new i = 1; i < 311; i++)
{
AddPlayerClass(i, 0.0, 0.0, 0.0, 269.1425, 0, 0, 0, 0, 0, 0);
}
SetGameModeText("[Polski/PL] DM/Drift/Freeroam");
SendRconCommand("weburl www.---------.pl");
SendRconCommand("rcon 0");
SendRconCommand("hostname •••[--]••• ------------------ 24/7?•••[0.3x]•••");
for(new i; i < 300; i++)
if(i != 74)
AddPlayerClass(i,1958.3783,1343.1572,15.3746,270.1425,0,0,0,0,0,0);


CreateTextDraws();
LoadATM();
LoadHouse();
LoadBiznes();
LoadSerwerStats();
CreateExteriorPickup();
CreateInteriorPickup();
CreateOtherPickup();
Create3DLabels();
CreateAttractionObject();
CreateGangBase();

SetTimer("VehicleCheatUpdate", 100, 1);
SetTimer("Zegar", 30000, 1);
SetTimer("RespawnVehicle", 60000*60, 1);
SetTimer("LookPlayer", 7000, 1);
SetTimer("SaveAllStats", 1800000, 1);
SetTimer("ZabawyRef", 100, 1);
SetTimer("BiznesPlac", 300000, 1);
SetTimer("Reklama", 11*55000, 1);
ReakcjaTimer = SetTimer("ReakcjaLook", 27*60000, 1);
MatmaTimer = SetTimer("MatmaLook", 38*60000, 1);
SetTimer("Export", 150000, 1);


CPid[0] = CreateDynamicCP(-1917.3940,298.3664,41.0469, 5.0, 0, 0, -1, 30.0); // San Fierro
CPid[1] = CreateDynamicCP(1791.8737,-1919.8201,13.3927, 5.0, 0, 0, -1, 30.0); // Los Santos

chaton = 0;
pmon = 0;

GlassGraczy = 0;
GlassStart = 0;
GlassStartuje = 0;

HayGraczy = 0;
HayStart = 0;
HayStartuje = 0;

DerbyGraczy = 0;
DerbyStart = 0;
DerbyStartuje = 0;

SkokiGraczy = 0;
SkokiStart = 0;
SkokiStartuje = 0;

WojnaGraczy = 0;
WojnaStart = 0;
WojnaStartuje = 0;

UstawkaGraczy = 0;
UstawkaStart = 0;
UstawkaStartuje = 0;

ZombieGraczy = 0;
ZombieStart = 0;
ZombieStartuje = 0;

LabiryntGraczy = 0;
LabiryntStartuje = 0;
LabiryntStart = 0;

UcieczkaGraczy = 0;
UcieczkaStartuje = 0;
UcieczkaStart = 0;
UcieczkaCzas = 0;

ChowanyGraczy = 0;
ChowanyStartuje = 0;
ChowanyStart = 0;

StrzelnicaGraczy = 0;
StrzelnicaStartuje = 0;
StrzelnicaStart = 0;


DerbyPojazd[0] = CreateVehicle(556,231.6999969,-3460.6000977,328.0000000,0.0000000,-1,-1,15); //Monster A
DerbyPojazd[1] = CreateVehicle(556,198.8000031,-3461.8000488,326.5000000,0.0000000,-1,-1,15); //Monster A
DerbyPojazd[2] = CreateVehicle(556,167.6000061,-3461.3999023,326.5000000,0.0000000,-1,-1,15); //Monster A
DerbyPojazd[3] = CreateVehicle(556,167.6999969,-3409.6000977,327.0000000,268.0000000,-1,-1,15); //Monster A
DerbyPojazd[4] = CreateVehicle(556,167.3999939,-3353.8999023,326.7999878,177.9949951,-1,-1,15); //Monster A
DerbyPojazd[5] = CreateVehicle(556,230.5000000,-3354.0000000,326.2999878,181.9949341,-1,-1,15); //Monster A
DerbyPojazd[6] = CreateVehicle(556,198.6999969,-3354.1000977,326.7999878,179.9949341,-1,-1,15); //Monster A
DerbyPojazd[7] = CreateVehicle(556,230.3999939,-3409.6000977,326.7999878,91.9945068,-1,-1,15); //Monster A
DerbyPojazd[8] = CreateVehicle(556,167.0000000,-3399.1000977,326.2999878,359.9940186,-1,-1,15); //Monster A
DerbyPojazd[9] = CreateVehicle(556,198.8000031,-3391.8000488,326.2999878,359.9890137,-1,-1,15); //Monster A
DerbyPojazd[10] = CreateVehicle(556,230.1000061,-3397.1999512,326.0000000,359.9890137,-1,-1,15); //Monster A
DerbyPojazd[11] = CreateVehicle(556,230.8999939,-3420.6000977,326.2999878,179.9890137,-1,-1,15); //Monster A
DerbyPojazd[12] = CreateVehicle(556,198.6000061,-3427.5000000,326.7999878,179.9890137,-1,-1,15); //Monster A
DerbyPojazd[13] = CreateVehicle(556,167.5000000,-3419.6999512,326.7999878,179.9890137,-1,-1,15); //Monster A
DerbyPojazd[14] = CreateVehicle(556,181.1000061,-3409.8999023,326.5000000,89.9890137,-1,-1,15); //Monster A
DerbyPojazd[15] = CreateVehicle(556,214.1000061,-3409.8000488,326.2999878,269.9890137,-1,-1,15); //Monster A
return 1;
}


Licz? na szybk? pomoc! Daje :piwo: :piwo: :piwo: :piwo: :piwo:
:piwo: :piwo: :piwo: :piwo:

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-09, 21:11


borsuk







Wiek: 17
Na forum: 3547 dni
Posty: 468

Piwa: 15621

Respekt: 412
Respekt: 412

Ostrzeżeń: 80%
gdzie tu widzisz error? Ja widz? w tym ze tw?j komputer ma za malo pami?ci i nie ma gdzie zapisa? lub twoje GTA nie ma danego pliku ale tak mi si? tylko zdaje

[ Dodano: 2016-12-09, 21:13 ]
Pomylka bledem jest to zcmd_OnGameModeInit pisze w ligach hmm?

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-10, 09:34


Cr3v_

$ chmod -r 666 /root






Wiek: 25
Na forum: 3511 dni
Posty: 33
Nick w MP: [PSR]Driv3r.

Piwa: 2

Respekt: 50

Ostrzeżeń: 60%
Czyli include zcmd idzie do zmiany?

[ Dodano: 2016-12-10, 09:40 ]
Masz zawarto?? tego publica :

public OnGameModeInit()
{
zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1;
if (funcidx("zcmd_OnGameModeInit") != -1)
{
return CallLocalFunction("zcmd_OnGameModeInit", "");
}
return 1;
}

#if defined _ALS_OnGameModeInit
#undef OnGameModeInit
#else
#define _ALS_OnGameModeInit
#endif
#define OnGameModeInit zcmd_OnGameModeInit
forward zcmd_OnGameModeInit();

Bynajmniej to znalaz?em w include od zcmd

Podpis

HYHY XD!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-10, 12:55


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
Skompiluj skrypt w trybie debug, jak to zrobi? znajdziesz w internecie. Wtedy crashdetect przeka?e wi?cej informacji na temat crash'a i ?atwiej b?dzie znale?? ?r?d?o problemu. W logach znajdzie si? nazwa pliku, numer linijki z b??dem czy te? nazwa wadliwej funkcji.

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-10, 13:18


borsuk







Wiek: 17
Na forum: 3547 dni
Posty: 468

Piwa: 15621

Respekt: 412
Respekt: 412

Ostrzeżeń: 80%
Jezu tak trudno zrozumiec ze zcmd nie dzia?a w OnGameModeInit ?!

Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-10, 16:31


Cr3v_

$ chmod -r 666 /root






Wiek: 25
Na forum: 3511 dni
Posty: 33
Nick w MP: [PSR]Driv3r.

Piwa: 2

Respekt: 50

Ostrzeżeń: 60%
Okej! Skrypt posiada 3 b??dy z czego jeden zainstnia? w zcmd ;)
Prosz? logi i wadliwe linijki
Kod:


[16:25] [debug] Server crashed while executing ---.amx
[16:25] [debug] AMX backtrace:
[16:25] [debug] #0 native mysql_query () [00d77780] from mysql.dll
[16:25] [debug] #1 000898b4 in public LoadHouse () at C:\Documents and Settings\xxx\Pulpit\----DM\gamemodes\---.pwn:9490
[16:25] [debug] #2 000017fc in public zcmd_OnGameModeInit () at C:\Documents and Settings\xxx\Pulpit\---DM\gamemodes\---.pwn:916
[16:25] [debug] #3 native CallLocalFunction () [004743b0] from samp-server.exe
[16:25] [debug] #4 000003e4 in public OnGameModeInit () at C:\Documents and Settings\xxx\Pulpit\\----DM\pawno\include\zcmd.inc:68


LoadHouse() (linijka 9490)
Kod:


forward LoadHouse(); //Wczytywanie dom?w
public LoadHouse(){
new str[128], Query[128];
for(new i = 0; i < max_houses; i++){
format(Query, sizeof Query, "SELECT * FROM Houses WHERE ID = '%d'", i);
mysql_query(Query);

mysql_store_result();
if(mysql_num_rows())
if(mysql_fetch_row(Query,"|")){
mysql_fetch_field("ID", str);
HouseInfo[i][hID] = strval(str);



ZCMD linijka 68
Kod:


public OnGameModeInit()
{
zcmd_g_HasOPCS = funcidx("OnPlayerCommandReceived") != -1;
zcmd_g_HasOPCE = funcidx("OnPlayerCommandPerformed") != -1;
if (funcidx("zcmd_OnGameModeInit") != -1)
{
return CallLocalFunction("zcmd_OnGameModeInit", "");
}
return 1;
}


W linijce 916 znajduje si? tylko to
Kod:


LoadHouse();


Podpis

HYHY XD!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2016-12-10, 17:41


Combacior







Wiek: 29
Na forum: 5795 dni
Posty: 1516

Piwa: 2161

Respekt: 1060
Respekt: 1060

Ostrzeżeń: 20%
ZCMD nie ma z tym nic wsp?lnego, nie s?uchaj tego gamonia-specjalisty. W logach pokazuje si? callback zcmd_OnGameModeInit, to fakt, ale czy to znaczy, ?e tam siedzi b??d? ZCMD robi tzw. hook'a dla callback'a OnGameModeInit, przez co kolejno?? wykonywania si? to OnGameModeInit w pliku zcmd.inc -> zcmd_OnGameModeInit (czyli ten prawdziwy, pochodz?cy ze skryptu) -> LoadHouse -> crash. Problemem jest funkcja LoadHouse, dok?adniej zapytanie MySQL do wczytywania dom?w. Ju? wiesz gdzie le?y b??d, zatem do dzie?a.

Postaw piwo autorowi tego posta
 

 
Tagi: crash :: serwera
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » PAWN » Crash serwera Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku