Dio skripte: [ pawn ]vaš odgovor[ /pawn ]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, (C)2005-2015 SA-MP Team
[17:25:42]
[17:25:42] Server Plugins
[17:25:42] --------------
[17:25:42] Loading plugin: sscanf
[17:25:42]
[17:25:42] ===============================
[17:25:42] sscanf plugin loaded.
[17:25:42] Version: 2.8.3
[17:25:42] (c) 2018 Alex "Y_Less" Cole
[17:25:42] ===============================
[17:25:42] Loaded.
[17:25:42] Loading plugin: crashdetect
[17:25:42] CrashDetect v4.18.1 is OK.
[17:25:42] Loaded.
[17:25:42] Loading plugin: streamer
[17:25:42]
*** Streamer Plugin v2.9.4 by Incognito loaded ***
[17:25:42] Loaded.
[17:25:42] Loaded 3 plugins.
[17:25:42]
[17:25:42] Ban list
[17:25:42] --------
[17:25:42] Loaded: samp.ban
[17:25:42]
[17:25:42]
[17:25:42] Filterscripts
[17:25:42] ---------------
[17:25:42] Loading filterscript 'TDIME.amx'...
[17:25:42] Loading filterscript 'gl_realtime.amx'...
[17:25:42] Loading filterscript 'mape.amx'...
[17:25:42] Loading filterscript 'ZIMA.amx'...
[17:25:42]
[17:25:42] =======================================
[17:25:42] | |
[17:25:42] | YSI version 1.04.0000 |
[17:25:42] | By Alex "Y_Less" Cole |
[17:25:42] | |
[17:25:42] | Checking the latest YSI version.. |
[17:25:42] | |
[17:25:42] =======================================
[17:25:42]
[17:25:43] Loaded 4 filterscripts.
[17:25:43]
[17:25:43] =======================================
[17:25:43] | |
[17:25:43] | YSI version 1.04.0000 |
[17:25:43] | By Alex "Y_Less" Cole |
[17:25:43] | |
[17:25:43] | Checking the latest YSI version.. |
[17:25:43] | |
[17:25:43] =======================================
[17:25:43]
[17:25:43]
----------------------------------
[17:25:43] BD:RP V.0.0.1 By Deken
[17:25:43] ----------------------------------
[17:25:43] Number of vehicle models: 3
[17:25:43]
[17:25:43] ========================================
[17:25:43] | |
[17:25:43] | Could not connect to update server |
[17:25:43] | at this time, (your code will |
[17:25:43] | still work (response was 404)). |
[17:25:43] | |
[17:25:43] ========================================
[17:25:43]
[17:25:43]
[17:25:43] ========================================
[17:25:43] | |
[17:25:43] | Could not connect to update server |
[17:25:43] | at this time, (your code will |
[17:25:43] | still work (response was 404)). |
[17:25:43] | |
[17:25:43] ========================================
[17:25:43]
[17:26:08] 127.0.0.1:62785 requests connection cookie.
[17:26:09] incoming connection: 127.0.0.1:62785 id: 0
[17:26:10] Vito_Capone has joined the server (0:127.0.0.1)
[17:26:43] Vito_Capone has left the server (0:2)
[17:33:47] 127.0.0.1:61901 requests connection cookie.
[17:33:48] incoming connection: 127.0.0.1:61901 id: 0
[17:33:49] Vito_Capone has joined the server (0:127.0.0.1)
[17:44:23] Run time error 6: "Invalid instruction"
[17:44:23] Unknown opcode 0x4294af0 at address 0x00000030
[17:44:23] AMX backtrace:
[17:44:23] #0 00000000 in public UPDATE () from BDRP.amx
[17:44:25] Run time error 6: "Invalid instruction"
[17:44:25] Unknown opcode 0x4294af0 at address 0x00000030
[17:44:25] AMX backtrace:
[17:44:25] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:27] Run time error 6: "Invalid instruction"
[17:45:27] Unknown opcode 0x4294af0 at address 0x00000030
[17:45:27] AMX backtrace:
[17:45:27] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:29] Run time error 6: "Invalid instruction"
[17:45:29] Unknown opcode 0x4294af0 at address 0x00000030
[17:45:29] AMX backtrace:
[17:45:29] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:59] Run time error 6: "Invalid instruction"
[17:45:59] Unknown opcode 0x4294af0 at address 0x00000030
[17:45:59] AMX backtrace:
[17:45:59] #0 00000030 in public S@@_OnPlayerDisconnect () from BDRP.amx
[17:45:59] #1 native CallLocalFunction () from samp-server.exe
[17:45:59] #2 0000da14 in public SSCANF_OnPlayerDisconnect (0, 1) from BDRP.amx
[17:45:59] #3 0000060c in public OnPlayerDisconnect (0, 1) from BDRP.amx
[17:45:59] Vito_Capone has left the server (0:1)
Slika/video ingame problema(obavezno ako je ingame problem): link slike
Sad fazon je sto sam napravio kao callback u onplayerconnect koji ce da odbrojava igracu 60s na kojih ce update njegove statistike i sad mi ovo stiglo ne znam do cega je probao sam nesto pokusati ali opet nece
evo onplayerconnect
public OnPlayerConnect(playerid)
{
//=============================================================================//
if(fexist(UserPath(playerid)))
{
INI_ParseFile(UserPath(playerid), "LoadUser_%s", .bExtra = true, .extra = playerid);
ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_INPUT,"Prijavljivanje","Ukucajte lozinku da bi se ulogovali","Prijavi se","Izadji");
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Imaš 30 sekundi da se uloguješ!");
SetTimer("ulogovan",30000,false);
}
else
{
ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_INPUT,"Registracija","Ukucajte lozinku da bi se registrovali.","Registruj se","Izadji");
}
if(PlayerInfo == 1)
{
SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Banovan si postavi žalbu na forumu!");
SetTimerEx("banovan",1000,false,"i",playerid);
}
if(PlayerInfo == 1)
{
new Text3D:Ucutkan= Create3DTextLabel("[Uæutkan]",0x0E0101AA,30.0,40.0,50.0,20.0,0,0);
Attach3DTextLabelToPlayer(Ucutkan,playerid,0.0,0.0,0.7);
}
SetTimerEx("UPDATE",60000,true,"i",playerid);
evo public update
forward UPDATE(playerid);
public UPDATE(playerid)
{
new INI:File = INI_Open(UserPath(playerid));
INI_SetTag(File,"data");
INI_WriteInt(File,"Novac",PlayerInfo);
INI_WriteInt(File,"Admin",PlayerInfo);
INI_WriteInt(File,"Vlasnik",PlayerInfo);
INI_WriteInt(File,"Ubistva",PlayerInfo);
INI_WriteInt(File,"Smrti",PlayerInfo);
INI_WriteInt(File,"Ulogovan",PlayerInfo);
INI_WriteInt(File,"Zatvoren",PlayerInfo);
INI_WriteInt(File,"AdminSkin",PlayerInfo);
INI_WriteInt(File,"JailVreme",PlayerInfo);
INI_WriteInt(File,"Banovan",PlayerInfo);
INI_WriteInt(File,"KosacTrave",poslovi);
INI_WriteInt(File,"Betonac",poslovi);
INI_WriteInt(File,"ADuty",PlayerInfo);
INI_WriteInt(File,"Skin",PlayerInfo);
INI_WriteInt(File,"Warn",PlayerInfo);
INI_WriteInt(File,"Mute",PlayerInfo);
INI_WriteInt(File,"MuteVreme",PlayerInfo);
INI_WriteInt(File,"Skripter",PlayerInfo);
INI_Close(File);
return 1;
}
