Padanje servera

Započeo Zlaja123, April 26, 2020, 14:17:41 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 6 gostiju pregledaju ovu temu.

Problem(error/warning): Kad se logujem server jednostavno padne i ugasi se
Dio skripte: [ pawn ][debug] Server crashed while executing gm.amx
[debug] AMX backtrace:
[debug] #0 native fwrite () from samp-server.exe
[debug] #1 002540f0 in ?? (0) from gm.amx
[debug] #2 00099e0c in public OnPlayerLogin (0, 9606248) from gm.amx
[debug] #3 001e7f90 in public OnDialogResponse (0, 1245, 1, -1, 9606248) from gm.amx
[debug] Native backtrace:
[debug] #0 772222d2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
[debug] #1 00498bb8 in ?? () from samp-server.exe
[debug] #2 0040531e in ?? () from samp-server.exe
[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): [ code ]vaš odgovor[ /code ]
Slika/video ingame problema(obavezno ako je ingame problem): link slike


Skini najnoviju verziju CrashDetecta

https://github.com/Zeex/samp-plugin-crashdetect/releases

OnPlayerLogin ti pravi problem sa fwrite negde ja msm
Poslednja Izmena: April 29, 2020, 03:10:42 PRE PODNE od .agency

Sad mi ispise ovo, ali i dalje padne srw

[19:19:14] [debug] Server crashed while executing gm.amx
[19:19:14] [debug] AMX backtrace:
[19:19:14] [debug] #0 native fwrite () in samp-server.exe
[19:19:14] [debug] #1 002540e8 in ?? (0) in gm.amx
[19:19:14] [debug] #2 00099de8 in public OnPlayerLogin (0, 9606236) in gm.amx
[19:19:14] [debug] #3 001e7f88 in public OnDialogResponse (0, 1245, 1, -1, 9606236) in gm.amx
[19:19:14] [debug] Native backtrace:
[19:19:14] [debug] #0 777322d2 in ?? () in C:\Windows\SysWOW64\ntdll.dll
[19:19:14] [debug] #1 00498bb8 in ?? () in samp-server.exe
[19:19:14] [debug] #2 0040531e in ?? () in samp-server.exe
[19:19:14] [debug] Registers:
[19:19:14] [debug] EAX: 00000024 EBX: 00000032 ECX: 004e5998 EDX: 00000000
[19:19:14] [debug] ESI: 00000024 EDI: 00000020 EBP: 00000000 ESP: 0018f630
[19:19:14] [debug] EIP: 0040531e EFLAGS: 00010202
[19:19:14] [debug] Stack:
[19:19:14] [debug] ESP+00000000: 00000032 00000000 049cedb0 0018f658
[19:19:14] [debug] ESP+00000020: 022b0ea8 0000004a 0018f790 004010b6
[19:19:14] [debug] ESP+00000040: 022b0ea8 00000017 0018f804 049cedb0
[19:19:14] [debug] ESP+00000060: 0018f62c 022b0ea8 00000000 0092cec8
[19:19:14] [debug] ESP+00000080: 005f9c78 0018f70a 00000000 0018f708
[19:19:14] [debug] ESP+000000a0: 77740378 74ad77c9 00606118 00000000
[19:19:14] [debug] ESP+000000c0: 022203d8 00000000 005f9c78 0018f708
[19:19:14] [debug] ESP+000000e0: 6552676f 6e6f7073 77006573 74ad770d
[19:19:14] [debug] ESP+00000100: 00000001 ffff0000 00000080 0000ffff
[19:19:14] [debug] ESP+00000120: 77746254 0018f804 049cedb0 00000000
[19:19:14] [debug] ESP+00000140: 00000000 0092cec8 022b0ea8 03fd6ac8
[19:19:14] [debug] ESP+00000160: 0018f7a4 744edc92 00000017 0018f804
[19:19:14] [debug] ESP+00000180: 00000017 0018f804 049cedb0 00000056
[19:19:14] [debug] ESP+000001a0: 02790f60 022b0ea8 00000000 03d829e0
[19:19:14] [debug] ESP+000001c0: 0092cec8 0092caf4 0092caf4 0018f860
[19:19:14] [debug] ESP+000001e0: 00000056 022b0ea8 00000005 0018fc50
[19:19:14] [debug] ESP+00000200: 744b344c 00000001 022b0ea8 00000001
[19:19:14] [debug] ESP+00000220: 0018f864 744e7df6 0018f860 028e6e60
[19:19:14] [debug] ESP+00000240: 022b0ea8 0018f894 74463374 022b0ea8
[19:19:14] [debug] ESP+00000260: 00000000 0018fb58 0046ec31 00000000
[19:19:14] [debug] ESP+00000280: 022b0ea8 000004dd 022b0ea8 00000001
[19:19:14] [debug] ESP+000002a0: 0018f8ec 0018fa40 049cb718 00000000
[19:19:14] [debug] ESP+000002c0: 00493912 00000056 000004dd 00000001
[19:19:14] [debug] ESP+000002e0: 003ed901 0018f8a8 010b0000 7446ffff
[19:19:14] [debug] ESP+00000300: 00000088 0018fb64 0018fa00 00000000
[19:19:14] [debug] ESP+00000320: 02000002 04f8d418 005e0000 00000000
[19:19:14] [debug] ESP+00000340: 700880f8 0502b828 00000001 777401db
[19:19:14] [debug] ESP+00000360: 74463b0d 0018fdc8 744b34f0 744b3594
[19:19:14] [debug] ESP+00000380: 0526b5c8 00000001 052717d0 0018f9d4
[19:19:14] [debug] ESP+000003a0: 052717d0 0018f9e8 7773e6a8 005e0000
[19:19:14] [debug] ESP+000003c0: 052717d8 744bb64c 0018fa80 7774f8ef
[19:19:14] [debug] ESP+000003e0: 0044e018 000000e8 0000001d 00000007
[19:19:14] [debug] Loaded modules:
[19:19:14] [debug] 00400000 - 00519000 samp-server.exe
[19:19:14] [debug] 77710000 - 77890000 ntdll.dll
[19:19:14] [debug] 77090000 - 771a0000 kernel32.dll
[19:19:14] [debug] 75520000 - 75567000 KERNELBASE.dll
[19:19:14] [debug] 76250000 - 76e9a000 SHELL32.dll
[19:19:14] [debug] 75d90000 - 75e3c000 msvcrt.dll
[19:19:14] [debug] 75900000 - 75957000 SHLWAPI.dll
[19:19:14] [debug] 75a90000 - 75b20000 GDI32.dll
[19:19:14] [debug] 75ee0000 - 75fe0000 USER32.dll
[19:19:14] [debug] 76080000 - 76120000 ADVAPI32.dll
[19:19:14] [debug] 75630000 - 75649000 sechost.dll
[19:19:14] [debug] 75210000 - 75300000 RPCRT4.dll
[19:19:14] [debug] 75110000 - 75170000 SspiCli.dll
[19:19:14] [debug] 75100000 - 7510c000 CRYPTBASE.dll
[19:19:14] [debug] 76ea0000 - 76eaa000 LPK.dll
[19:19:14] [debug] 75e40000 - 75edd000 USP10.dll
[19:19:14] [debug] 750a0000 - 750a7000 WSOCK32.dll
[19:19:14] [debug] 75ce0000 - 75d15000 WS2_32.dll
[19:19:14] [debug] 75a80000 - 75a86000 NSI.dll
[19:19:14] [debug] 739e0000 - 73a12000 WINMM.dll
[19:19:14] [debug] 75870000 - 758d0000 IMM32.DLL
[19:19:14] [debug] 77240000 - 7730c000 MSCTF.dll
[19:19:14] [debug] 10000000 - 1000d000 sscanf.DLL
[19:19:14] [debug] 74530000 - 745ef000 MSVCR100.dll
[19:19:14] [debug] 744d0000 - 74521000 crashdetect.DLL
[19:19:14] [debug] 74db0000 - 74e19000 MSVCP100.dll
[19:19:14] [debug] 74460000 - 744c7000 streamer.DLL
[19:19:14] [debug] 74000000 - 7406c000 MSVCP140.dll
[19:19:14] [debug] 74f70000 - 74f85000 VCRUNTIME140.dll
[19:19:14] [debug] 74e40000 - 74e44000 api-ms-win-crt-runtime-l1-1-0.dll
[19:19:14] [debug] 71b10000 - 71bec000 ucrtbase.DLL
[19:19:14] [debug] 74230000 - 74233000 api-ms-win-core-timezone-l1-1-0.dll
[19:19:14] [debug] 74360000 - 74363000 api-ms-win-core-file-l2-1-0.dll
[19:19:14] [debug] 74220000 - 74223000 api-ms-win-core-localization-l1-2-0.dll
[19:19:14] [debug] 73980000 - 73983000 api-ms-win-core-synch-l1-2-0.dll
[19:19:14] [debug] 74210000 - 74213000 api-ms-win-core-processthreads-l1-1-1.dll
[19:19:14] [debug] 74200000 - 74203000 api-ms-win-core-file-l1-2-0.dll
[19:19:14] [debug] 741f0000 - 741f3000 api-ms-win-crt-heap-l1-1-0.dll
[19:19:14] [debug] 741e0000 - 741e4000 api-ms-win-crt-string-l1-1-0.dll
[19:19:14] [debug] 73e00000 - 73e04000 api-ms-win-crt-convert-l1-1-0.dll
[19:19:14] [debug] 741a0000 - 741a4000 api-ms-win-crt-stdio-l1-1-0.dll
[19:19:14] [debug] 73970000 - 73973000 api-ms-win-crt-locale-l1-1-0.dll
[19:19:14] [debug] 73800000 - 73805000 api-ms-win-crt-math-l1-1-0.dll
[19:19:14] [debug] 74f60000 - 74f65000 api-ms-win-crt-multibyte-l1-1-0.dll
[19:19:14] [debug] 73930000 - 73933000 api-ms-win-crt-time-l1-1-0.dll
[19:19:14] [debug] 73940000 - 73943000 api-ms-win-crt-filesystem-l1-1-0.dll
[19:19:14] [debug] 73810000 - 73813000 api-ms-win-crt-environment-l1-1-0.dll
[19:19:14] [debug] 737f0000 - 737f3000 api-ms-win-crt-utility-l1-1-0.dll
[19:19:14] [debug] 743a0000 - 743ee000 mysql.DLL
[19:19:14] [debug] 74e90000 - 74eaa000 log-core.dll
[19:19:14] [debug] 71f10000 - 71fdd000 libmariadb.dll
[19:19:14] [debug] 73a50000 - 73a58000 Secur32.dll
[19:19:14] [debug] 75960000 - 75a80000 CRYPT32.dll
[19:19:14] [debug] 75570000 - 7557c000 MSASN1.dll
[19:19:14] [debug] 75000000 - 75010000 NLAapi.dll
[19:19:14] [debug] 74f50000 - 74f60000 napinsp.dll
[19:19:14] [debug] 73fe0000 - 73ff2000 pnrpnsp.dll
[19:19:14] [debug] 738f0000 - 7392c000 mswsock.dll
[19:19:14] [debug] 73850000 - 73894000 DNSAPI.dll
[19:19:14] [debug] 74f40000 - 74f48000 winrnr.dll
[19:19:14] [debug] 74e80000 - 74e8d000 wshbth.dll
[19:19:14] [debug] 735d0000 - 735d6000 rasadhlp.dll
[19:19:14] [debug] 73fc0000 - 73fdb000 MapAndreas.DLL
[19:19:14] [debug] 73710000 - 73715000 wshtcpip.dll
[19:19:14] [debug] 738d0000 - 738ec000 IPHLPAPI.DLL
[19:19:14] [debug] 738c0000 - 738c7000 WINNSI.DLL
[19:19:14] [debug] 73f80000 - 73fb8000 fwpuclnt.dll


Jesam, na zadnju verziju 4.19.4


ostavi nam public

`OnPlayerLogin` i prestanite da serete da update-a plugin kad je i ranije bacalo zbog cega pada

[pawn]#2 00099de8 in public OnPlayerLogin (0, 9606236) in gm.amx[/pawn]
ti kaze sve, predopstavljam da je prvo id igraca a drugo nemam pojma sta ti je, pricam o argumentima u publicu

public OnPlayerLogin(playerid,password[])
{
if(gPlayerLogged[playerid] != 0) return 1;
//if(strlen(password)<6){ShowPlayerDialog(playerid,1250,DIALOG_STYLE_PASSWORD,"{F81414}Pogresna lozinka!!!","Unijeli ste prekratku lozinku.\nPokusajte ponovo.","Login","Izlaz"); return 1;}
new string[128];
new playername2[MAX_PLAYER_NAME];
new playersip[24];

new loz[48];
GetPVarString(playerid,"Lozinka",loz,48);
GetPlayerName(playerid, playername2, sizeof(playername2));
    GetPlayerIp(playerid, playersip, sizeof(playersip));
    new logg,logd,logm,logh,logmin,logs;
new pass2[48];
format(pass2,sizeof(pass2),"%d",num_hash(password));
if(strcmp(loz,password,false) != 0 && strcmp(loz,pass2,false) != 0)
{
gPlayerLogTries[playerid] += 1;
format(string,sizeof(string),"{F3FF02}Unijeli ste pogresnu lozinku za korisnika{F81414} %s\n{F3FF02}Imate jos %d pokusaja za login!",playername2,4-gPlayerLogTries[playerid]);
ShowPlayerDialog(playerid,1250,DIALOG_STYLE_PASSWORD,"{F81414}Pogresna lozinka!!!",string,"Login","Izlaz");
if(gPlayerLogTries[playerid] >= 4 || gPlayerLogTries[playerid] < 0) Kick(playerid);
return 1;
}
//UcitavanjePodataka(playerid,playername2);
getdate(logg,logm,logd);
gettime(logh,logmin,logs);
//=============================================================
new login[20],dan[3],mjesec[3],god[5];
new ldate[26];
GetPVarString(playerid,"ZLogin",ldate,25);
strmid(login,ldate,0,strlen(ldate),25);
for(new t = 0; t < 12; t++)
{
if(login[t] == '.')
{
strmid(dan,login,0,t,3);
if(login[t+2] == '.')
{
strmid(mjesec,login,t+1,t+2,3);
strmid(god,login,t+3,t+8,5);
}
else
{
strmid(mjesec,login,t+1,t+3,3);
strmid(god,login,t+4,t+9,5);
}
break;
}
}
if((logd > strval(dan) && logm == strval(mjesec)) || (logm > strval(mjesec) && logg == strval(god)) || logg >strval(god))
{
SetPVarInt(playerid,"DanAktivnost",0);
if(GetPVarInt(playerid,"VIPTrajanje")>0) SetPVarIntEx(playerid,"VIPTrajanje",-,1);
if(GetPVarInt(playerid,"USkinTr")>0) SetPVarIntEx(playerid,"USkinTr",-,1);
}
if(GetPVarInt(playerid,"Glasao") != GlasInfo[gAktivno]) SetPVarInt(playerid,"Glasao",0);
new zlogstr[25];
format(zlogstr,sizeof(zlogstr),"%d.%d.%d. %d:%d",logd,logm,logg,logh,logmin);
SetPVarString(playerid,"ZLogin",zlogstr);

if(GetPVarInt(playerid,"Vodja") == 0 && GetPVarInt(playerid,"Clan") == 0) { SetPVarInt(playerid,"Vodja",999); SetPVarInt(playerid,"Clan",999);}
if(GetPVarInt(playerid,"Kuca") == 0) SetPVarInt(playerid,"Kuca",0);
if(GetPVarInt(playerid,"Stan") == 0) SetPVarInt(playerid,"Stan",0);
if(GetPVarInt(playerid,"Vikendica") == 0) SetPVarInt(playerid,"Vikendica",0);
if(GetPVarInt(playerid,"BizzV") == 0 || GetPVarInt(playerid,"BizzV") == 999) SetPVarInt(playerid,"BizzV",9999);
if(GetPVarInt(playerid,"VlasnikOrge")==0) SetPVarInt(playerid,"VlasnikOrge",999);
if(GetPVarInt(playerid,"PAuto")==9999) SetPVarInt(playerid,"PAuto",999999);
if(GetPVarInt(playerid,"Biciklo")==9999) SetPVarInt(playerid,"Biciklo",999999);
if(GetPVarInt(playerid,"Plovilo")==9999) SetPVarInt(playerid,"Plovilo",999999);
if(GetPVarInt(playerid,"Letjelica")==9999) SetPVarInt(playerid,"Letjelica",999999);
if(GetPVarInt(playerid,"Motor")==9999) SetPVarInt(playerid,"Motor",999999);
if(GetPVarInt(playerid,"PAuto2")==0 || GetPVarInt(playerid,"PAuto2")==9998) SetPVarInt(playerid,"PAuto2",999998);
if(GetPVarInt(playerid,"PAuto2") == 9999) SetPVarInt(playerid,"PAuto2",999999);
if(GetPVarInt(playerid,"PNivo") == 0) SetPVarInt(playerid,"DKol",0);
if(GetPVarInt(playerid,"Ovisnost") < 0) SetPVarInt(playerid,"Ovisnost",0);
if(GetPVarInt(playerid,"Porijeklo") == 0) SetPVarInt(playerid,"Porijeklo",1);
if(GetPVarInt(playerid,"Clan") == 2 || GetPVarInt(playerid,"Vodja") == 2) SetPVarInt(playerid,"Posao",0);
if(GetPVarInt(playerid,"Clan") == 4 || GetPVarInt(playerid,"Vodja") == 4) SetPVarInt(playerid,"Posao",0);
if(GetPVarInt(playerid,"VIPTrajanje")==0)
{
SetPVarInt(playerid,"VIPBodovi",0);
SetPVarInt(playerid,"VIPTuning",0);
SetPVarInt(playerid,"VIPRadio",0);
SetPVarInt(playerid,"VIPOFRadio",0);
SetPVarInt(playerid,"VIPNeonke",0);
}
if(GetPVarInt(playerid,"USkinTr")==0) SetPVarInt(playerid,"UnikatniSkin",0);
SetPVarInt(playerid,"VIPOFRadio",0);
//-------------------------------------------------------------------------------------------------------------------------
if(GetPVarInt(playerid,"PAuto") < 650) SetPVarInt(playerid,"PAuto",999999);
if(GetPVarInt(playerid,"PAuto2") < 650) SetPVarInt(playerid,"PAuto2",999999);
new org; if(GetPVarInt(playerid,"Vodja")!=999) org = GetPVarInt(playerid,"Vodja"); else org = GetPVarInt(playerid,"Clan");
if(GetPVarInt(playerid,"Posao") == 6 && org != 0 && org != 5 && org != 6 && org != 11 && org != 13 && org != 16) SetPVarInt(playerid,"Posao",0);
if(GetPVarInt(playerid,"VremenaNaServeru") > 0) SetPVarInt(playerid,"Tutzavrsen",1);
gPlayerLogged[playerid] = 1;
gPlayerOnRequest[playerid] = 0;
gPlayerConSpawn[playerid] = 1;
// SpikeTimer[playerid] = SetTimerEx("StripPlayerUpdate", StripUpdateTime, true, "i", playerid);
// Ponistavanje vrijednosti zaostalih iz prethodne posjete
if(GetPVarInt(playerid,"Zahtjevi")==1)
{
SetPVarInt(playerid,"BKartica",1);
SetPVarInt(playerid,"Zahtjevi",0);
}
if(GetPVarInt(playerid,"Vikendica") == 0) SetPVarInt(playerid,"Vikendica",9999);
// Ucitavanje i kreiranje privatnih vozila igraca
if(GetPVarInt(playerid,"PAuto")!=999999 && GetPVarInt(playerid,"PAuto")>=650)
{
new vsl = FreeOwnVehSlot();
ClearCarInfo(vsl);
new stanjeucitavanja = LoadVeh(GetPVarInt(playerid,"PAuto"),vsl);
if(stanjeucitavanja == 1)
{
if(CarInfo[vsl][cZaplijenjen]!=0)
{
new pid;
for(new vs = 0; vs < 11; vs++)
{
if(zparking[vs] == 0)
{
pid = vs;
break;
}
}
if(pid > 10)
{
if(CarInfo[vsl][cModel] != 509 && CarInfo[vsl][cModel] != 510 && CarInfo[vsl][cModel] != 481 && CarInfo[vsl][cModel] != 462 && CarInfo[vsl][cModel] != 581 && CarInfo[vsl][cModel] != 522 && CarInfo[vsl][cModel] != 461 && CarInfo[vsl][cModel] != 521 && CarInfo[vsl][cModel] != 463 && CarInfo[vsl][cModel] != 586 && CarInfo[vsl][cModel] != 468 && CarInfo[vsl][cModel] != 471)
{
CarInfo[vsl][cZaplijenjen] = 0;
ownedcar[vsl] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl][cModel],CarInfo[vsl][cLocationx],CarInfo[vsl][cLocationy],CarInfo[vsl][cLocationz]+1.0,CarInfo[vsl][cAngle],CarInfo[vsl][cColorOne],CarInfo[vsl][cColorTwo],300000),CarInfo[vsl][cReg]);
OnPropUpdate(1,vsl);
owncar[playerid] = vsl;
ownedcar2[vsl] = 0; ownedpl[vsl] = 0; ownedmo[vsl] = 0; ownedbi[vsl] = 0; ownedlet[vsl] = 0; polmo[vsl] = 0; polcar[vsl] = 0;
}
}
else
{
if(CarInfo[vsl][cModel] != 509 && CarInfo[vsl][cModel] != 510 && CarInfo[vsl][cModel] != 481 && CarInfo[vsl][cModel] != 462 && CarInfo[vsl][cModel] != 581 && CarInfo[vsl][cModel] != 522 && CarInfo[vsl][cModel] != 461 && CarInfo[vsl][cModel] != 521 && CarInfo[vsl][cModel] != 463 && CarInfo[vsl][cModel] != 586 && CarInfo[vsl][cModel] != 468 && CarInfo[vsl][cModel] != 471)
{
ownedcar[vsl] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl][cModel],2333.6052,-1226.0588-(2*pid),22.4112,261.9200,CarInfo[vsl][cColorOne],CarInfo[vsl][cColorTwo],300000),CarInfo[vsl][cReg]);
zparking[pid] = vsl;
owncar[playerid] = vsl;
ownedcar2[vsl] = 0; ownedpl[vsl] = 0; ownedmo[vsl] = 0; ownedbi[vsl] = 0; ownedlet[vsl] = 0; polmo[vsl] = 0; polcar[vsl] = 0;
}
}
}
else
{
if(CarInfo[vsl][cModel] != 509 && CarInfo[vsl][cModel] != 510 && CarInfo[vsl][cModel] != 481 && CarInfo[vsl][cModel] != 462 && CarInfo[vsl][cModel] != 581 && CarInfo[vsl][cModel] != 522 && CarInfo[vsl][cModel] != 461 && CarInfo[vsl][cModel] != 521 && CarInfo[vsl][cModel] != 463 && CarInfo[vsl][cModel] != 586 && CarInfo[vsl][cModel] != 468 && CarInfo[vsl][cModel] != 471)
{
ownedcar[vsl] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl][cModel],CarInfo[vsl][cLocationx],CarInfo[vsl][cLocationy],CarInfo[vsl][cLocationz]+1.0,CarInfo[vsl][cAngle],CarInfo[vsl][cColorOne],CarInfo[vsl][cColorTwo],300000),CarInfo[vsl][cReg]);
owncar[playerid] = vsl;
ownedcar2[vsl] = 0; ownedpl[vsl] = 0; ownedmo[vsl] = 0; ownedbi[vsl] = 0; ownedlet[vsl] = 0; polmo[vsl] = 0; polcar[vsl] = 0;
}
}
SetVehicleVirtualWorld(vsl, CarInfo[vsl][cVirWorld]);
SetVehicleModifications(vsl);
ToggleVehicleEngineOn(vsl,0);
Gorivo[vsl] = float(CarInfo[vsl][cGKol]);
if(strcmp(playername2,CarInfo[vsl][cOwner],true) != 0)
{
SetPVarInt(playerid,"PAuto",999999);
DestroyVehicle(owncar[playerid]);
ownedcar[owncar[playerid]] = 0;
ClearCarInfo(owncar[playerid]);
owncar[playerid] = 9999;
}
} else SetPVarInt(playerid,"PAuto",999999);
}
if(GetPVarInt(playerid,"Motor")!=999999 && GetPVarInt(playerid,"Motor")>=650)
{
new vsl2 = FreeOwnVehSlot();
ClearCarInfo(vsl2);
new motor = GetPVarInt(playerid,"Motor");
new stanjeucitavanja = LoadVeh(motor,vsl2);
if(stanjeucitavanja == 1)
{
if(CarInfo[vsl2][cModel] == 462 || CarInfo[vsl2][cModel] == 581 || CarInfo[vsl2][cModel] == 522 || CarInfo[vsl2][cModel] == 461 || CarInfo[vsl2][cModel] == 521 || CarInfo[vsl2][cModel] == 463 || CarInfo[vsl2][cModel] == 586 || CarInfo[vsl2][cModel] == 468 || CarInfo[vsl2][cModel] == 471)
{
ownedmo[vsl2] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl2][cModel],CarInfo[vsl2][cLocationx],CarInfo[vsl2][cLocationy],CarInfo[vsl2][cLocationz]+1.0,CarInfo[vsl2][cAngle],CarInfo[vsl2][cColorOne],CarInfo[vsl2][cColorTwo],300000),CarInfo[vsl2][cReg]);
ownmo[playerid] = vsl2;
ownedcar[vsl2] = 0; ownedcar2[vsl2] = 0; ownedbi[vsl2] = 0; ownedlet[vsl2] = 0; ownedpl[vsl2] = 0; polmo[vsl2] = 0; polcar[vsl2] = 0;
ToggleVehicleEngineOn(vsl2,0);
Gorivo[vsl2] = float(CarInfo[vsl2][cGKol]);
}
} else SetPVarInt(playerid,"Motor",999999);
}
if(GetPVarInt(playerid,"Biciklo")!=999999 && GetPVarInt(playerid,"Biciklo")>=650)
{
new vsl3 = FreeOwnVehSlot();
ClearCarInfo(vsl3);
new biciklo = GetPVarInt(playerid,"Biciklo");
new stanjeucitavanja = LoadVeh(biciklo,vsl3);
if(stanjeucitavanja == 1)
{
if(CarInfo[vsl3][cModel] == 509 || CarInfo[vsl3][cModel] == 510 || CarInfo[vsl3][cModel] == 481)
{
ownedbi[vsl3] = CreateVehicle(CarInfo[vsl3][cModel],CarInfo[vsl3][cLocationx],CarInfo[vsl3][cLocationy],CarInfo[vsl3][cLocationz]+1.0,CarInfo[vsl3][cAngle],CarInfo[vsl3][cColorOne],CarInfo[vsl3][cColorTwo],300000);
ownbi[playerid] = vsl3;
ownedcar[vsl3] = 0; ownedcar2[vsl3] = 0; ownedmo[vsl3] = 0; ownedlet[vsl3] = 0; ownedpl[vsl3] = 0; polmo[vsl3] = 0; polcar[vsl3] = 0;
ToggleVehicleEngineOn(vsl3,1);
Gorivo[vsl3] = 5.0;
}
} else SetPVarInt(playerid,"Biciklo",999999);
}
if(GetPVarInt(playerid,"Letjelica")!=999999 && GetPVarInt(playerid,"Letjelica")>=650)
{
new vsl4 = FreeOwnVehSlot();
ClearCarInfo(vsl4);
new stanjeucitavanja = LoadVeh(GetPVarInt(playerid,"Letjelica"),vsl4);
if(stanjeucitavanja == 1)
{
ownedlet[vsl4] = CreateVehicle(CarInfo[vsl4][cModel],CarInfo[vsl4][cLocationx],CarInfo[vsl4][cLocationy],CarInfo[vsl4][cLocationz]+1.0,CarInfo[vsl4][cAngle],CarInfo[vsl4][cColorOne],CarInfo[vsl4][cColorTwo],300000);
ownlet[playerid] = vsl4;
ownedcar[vsl4] = 0; ownedcar2[vsl4] = 0; ownedmo[vsl4] = 0; ownedbi[vsl4] = 0; ownedpl[vsl4] = 0; polmo[vsl4] = 0; polcar[vsl4] = 0;
ToggleVehicleEngineOn(vsl4,0);
Gorivo[vsl4] = 20.0;
} else SetPVarInt(playerid,"Letjelica",999999);
}
if(GetPVarInt(playerid,"Plovilo")!=999999 && GetPVarInt(playerid,"Plovilo")>=650)
{
new vsl5 = FreeOwnVehSlot();
ClearCarInfo(vsl5);
new stanjeucitavanja = LoadVeh(GetPVarInt(playerid,"Plovilo"),vsl5);
if(stanjeucitavanja == 1)
{
ownedpl[vsl5] = CreateVehicle(CarInfo[vsl5][cModel],CarInfo[vsl5][cLocationx],CarInfo[vsl5][cLocationy],CarInfo[vsl5][cLocationz]+1.0,CarInfo[vsl5][cAngle],CarInfo[vsl5][cColorOne],CarInfo[vsl5][cColorTwo],300000);
ownpl[playerid] = vsl5;
ownedcar[vsl5] = 0; ownedcar2[vsl5] = 0; ownedmo[vsl5] = 0; ownedbi[vsl5] = 0; ownedlet[vsl5] = 0; polmo[vsl5] = 0; polcar[vsl5] = 0;
ToggleVehicleEngineOn(vsl5,0);
Gorivo[vsl5] = 20.0;
} else SetPVarInt(playerid,"Plovilo",999999);
}
if(GetPVarInt(playerid,"PAuto2") == 999999) owncar2[playerid] = 9999;
if(GetPVarInt(playerid,"PAuto2")<999998 && GetPVarInt(playerid,"PAuto2")>=650)
{
new vsl10 = FreeOwnVehSlot();
ClearCarInfo(vsl10);
new stanjeucitavanja = LoadVeh(GetPVarInt(playerid,"PAuto2"),vsl10);
if(stanjeucitavanja == 1)
{
if(CarInfo[vsl10][cZaplijenjen]!=0)
{
new pid;
for(new vs = 0; vs < 11; vs++)
{
if(zparking[vs] == 0)
{
pid = vs;
break;
}
}
if(pid > 10)
{
if(CarInfo[vsl10][cModel] != 509 && CarInfo[vsl10][cModel] != 510 && CarInfo[vsl10][cModel] != 481 && CarInfo[vsl10][cModel] != 462 && CarInfo[vsl10][cModel] != 581 && CarInfo[vsl10][cModel] != 522 && CarInfo[vsl10][cModel] != 461 && CarInfo[vsl10][cModel] != 521 && CarInfo[vsl10][cModel] != 463 && CarInfo[vsl10][cModel] != 586 && CarInfo[vsl10][cModel] != 468 && CarInfo[vsl10][cModel] != 471)
{
CarInfo[vsl10][cZaplijenjen] = 0;
ownedcar2[vsl10] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl10][cModel],CarInfo[vsl10][cLocationx],CarInfo[vsl10][cLocationy],CarInfo[vsl10][cLocationz]+1.0,CarInfo[vsl10][cAngle],CarInfo[vsl10][cColorOne],CarInfo[vsl10][cColorTwo],300000),CarInfo[vsl10][cReg]);
OnPropUpdate(1,vsl10);
owncar2[playerid] = vsl10;
ownedcar[vsl10] = 0; ownedpl[vsl10] = 0; ownedmo[vsl10] = 0; ownedbi[vsl10] = 0; ownedlet[vsl10] = 0; polmo[vsl10] = 0; polcar[vsl10] = 0;
}
}
else
{
if(CarInfo[vsl10][cModel] != 509 && CarInfo[vsl10][cModel] != 510 && CarInfo[vsl10][cModel] != 481 && CarInfo[vsl10][cModel] != 462 && CarInfo[vsl10][cModel] != 581 && CarInfo[vsl10][cModel] != 522 && CarInfo[vsl10][cModel] != 461 && CarInfo[vsl10][cModel] != 521 && CarInfo[vsl10][cModel] != 463 && CarInfo[vsl10][cModel] != 586 && CarInfo[vsl10][cModel] != 468 && CarInfo[vsl10][cModel] != 471)
{
ownedcar2[vsl10] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl10][cModel],2333.6052,-1226.0588-(2*pid),22.4112,261.9200,CarInfo[vsl10][cColorOne],CarInfo[vsl10][cColorTwo],300000),CarInfo[vsl10][cReg]);
zparking[pid] = vsl10;
owncar2[playerid] = vsl10;
ownedcar[vsl10] = 0; ownedpl[vsl10] = 0; ownedmo[vsl10] = 0; ownedbi[vsl10] = 0; ownedlet[vsl10] = 0; polmo[vsl10] = 0; polcar[vsl10] = 0;
}
}
}
else
{
if(CarInfo[vsl10][cModel] != 509 && CarInfo[vsl10][cModel] != 510 && CarInfo[vsl10][cModel] != 481 && CarInfo[vsl10][cModel] != 462 && CarInfo[vsl10][cModel] != 581 && CarInfo[vsl10][cModel] != 522 && CarInfo[vsl10][cModel] != 461 && CarInfo[vsl10][cModel] != 521 && CarInfo[vsl10][cModel] != 463 && CarInfo[vsl10][cModel] != 586 && CarInfo[vsl10][cModel] != 468 && CarInfo[vsl10][cModel] != 471)
{
ownedcar2[vsl10] = SetVehicleNumberPlate(CreateVehicle(CarInfo[vsl10][cModel],CarInfo[vsl10][cLocationx],CarInfo[vsl10][cLocationy],CarInfo[vsl10][cLocationz]+1.0,CarInfo[vsl10][cAngle],CarInfo[vsl10][cColorOne],CarInfo[vsl10][cColorTwo],300000),CarInfo[vsl10][cReg]);
owncar2[playerid] = vsl10;
ownedcar[vsl10] = 0; ownedpl[vsl10] = 0; ownedmo[vsl10] = 0; ownedbi[vsl10] = 0; ownedlet[vsl10] = 0; polmo[vsl10] = 0; polcar[vsl10] = 0;
}
}
ToggleVehicleEngineOn(vsl10,0);
SetVehicleModifications(vsl10);
Gorivo[vsl10] = float(CarInfo[vsl10][cGKol]);
if(strcmp(playername2,CarInfo[vsl10][cOwner],true) != 0)
{
SetPVarInt(playerid,"PAuto2",999999);
DestroyVehicle(owncar2[playerid]);
ownedcar[owncar2[playerid]] = 0;
ClearCarInfo(owncar2[playerid]);
owncar2[playerid] = 9999;
}
} else SetPVarInt(playerid,"PAuto2",999999);
}
/*if(GetPVarInt(playerid,"AutoPlayer") != 0)
{
UpitRadio(playerid,GetPVarInt(playerid,"AutoPlayer"));
}*/
SetSpawnInfo( playerid, 0, GetPVarInt(playerid,"Skin"), 797.5646,-1337.9972,-0.5078,228.5968, 0, 0, 0, 0, 0, 0 );
SetPlayerWeather(playerid,TrenutnoVrijeme);
SpawnPlayer(playerid);
IPLoginLog(playerid);
//SetPlayerSpawn(playerid);
return 1;
}


Problem ti je negde u tom 'loginu' ne znam kako ti funkcionise mod i sta si poslednje dodavao ili menjao probaj vratiti unazad!
PAWN DEVELOPER - 2016

KAD JE NAJTEZE BUDI CVRST KAO CELIK
I SJAJI KAO NAJSKUPLJI DIJAMANT

VER MONT COMMUNITY

Kontakti:
FB: https://www.facebook.com/zmajko.youtube
IG: https://www.instagram.com/zmajkobrate

To nije moj mod pronašao sam ga, ne mogu nikako otkrit do čega jd

Najlakse rijesenje ti je da debugujes ovaj public onplayerlogin, znaci svakih 10 linija stavi print("dbg1"); pa dbg2, pa dbg3, to dodajes svakih 10-20 linija da suzis na cemu kresa i tako radis i smanjujes oko tog dijela gdje kresa dok ne nadjes uzork. Pozdrav!

My Bike KTM 450 SXF 2008

Citat: Vuzimir poslato Maj 05, 2020, 19:51:13 POSLE PODNE
Najlakse rijesenje ti je da debugujes ovaj public onplayerlogin, znaci svakih 10 linija stavi print("dbg1"); pa dbg2, pa dbg3, to dodajes svakih 10-20 linija da suzis na cemu kresa i tako radis i smanjujes oko tog dijela gdje kresa dok ne nadjes uzork. Pozdrav!

Još lakše je da skine ako nema crashdetect plugin, compilea sa -d3 flagom i onda testira.
Tada će mu pokazati točnu liniju gdje je error.
Citat: CheezItFollow your heart and own style.
Citat: PottusThat is perfectly fine, I'm just pointing out where you made mistakes what does hearing "good job" get you? Absolutely nothing. You need to hear the problems otherwise you'll keep making the same mistakes :)

Citat: ShadowMortar poslato Maj 05, 2020, 19:55:02 POSLE PODNE
Još lakše je da skine ako nema crashdetect plugin, compilea sa -d3 flagom i onda testira.
Tada će mu pokazati točnu liniju gdje je error.

To sa crashdetect i -d3 sam pokusao, ispisuje mi samo to gore sto sam naveo