Update

Započeo Deken, Januar 18, 2019, 17:51:03 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Problem(error/warning): vaš odgovor
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] [connection] 127.0.0.1:62785 requests connection cookie.
[17:26:09] [connection] incoming connection: 127.0.0.1:62785 id: 0
[17:26:10] [join] Vito_Capone has joined the server (0:127.0.0.1)
[17:26:43] [part] Vito_Capone has left the server (0:2)
[17:33:47] [connection] 127.0.0.1:61901 requests connection cookie.
[17:33:48] [connection] incoming connection: 127.0.0.1:61901 id: 0
[17:33:49] [join] Vito_Capone has joined the server (0:127.0.0.1)
[17:44:23] [debug] Run time error 6: "Invalid instruction"
[17:44:23] [debug]  Unknown opcode 0x4294af0 at address 0x00000030
[17:44:23] [debug] AMX backtrace:
[17:44:23] [debug] #0 00000000 in public UPDATE () from BDRP.amx
[17:44:25] [debug] Run time error 6: "Invalid instruction"
[17:44:25] [debug]  Unknown opcode 0x4294af0 at address 0x00000030
[17:44:25] [debug] AMX backtrace:
[17:44:25] [debug] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:27] [debug] Run time error 6: "Invalid instruction"
[17:45:27] [debug]  Unknown opcode 0x4294af0 at address 0x00000030
[17:45:27] [debug] AMX backtrace:
[17:45:27] [debug] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:29] [debug] Run time error 6: "Invalid instruction"
[17:45:29] [debug]  Unknown opcode 0x4294af0 at address 0x00000030
[17:45:29] [debug] AMX backtrace:
[17:45:29] [debug] #0 00000000 in public UPDATE () from BDRP.amx
[17:45:59] [debug] Run time error 6: "Invalid instruction"
[17:45:59] [debug]  Unknown opcode 0x4294af0 at address 0x00000030
[17:45:59] [debug] AMX backtrace:
[17:45:59] [debug] #0 00000030 in public S[member=1996][/member][member=1996][/member]_OnPlayerDisconnect () from BDRP.amx
[17:45:59] [debug] #1 native CallLocalFunction () from samp-server.exe
[17:45:59] [debug] #2 0000da14 in public SSCANF_OnPlayerDisconnect (0, 1) from BDRP.amx
[17:45:59] [debug] #3 0000060c in public OnPlayerDisconnect (0, 1) from BDRP.amx
[17:45:59] [part] 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
[pawn]
public   OnPlayerConnect(playerid)
{
//================================[REGISTER]=============================================//
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[playerid][pBanovan] == 1)
{
      SendClientMessage(playerid,-1,""CRVENA"[BD:RP]"BELA"Banovan si postavi žalbu na forumu!");
       SetTimerEx("banovan",1000,false,"i",playerid);
}
if(PlayerInfo[playerid][Mute] == 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);
[/pawn]
evo public update
[pawn]
forward UPDATE(playerid);
public UPDATE(playerid)
{
   new INI:File = INI_Open(UserPath(playerid));
   INI_SetTag(File,"data");
   INI_WriteInt(File,"Novac",PlayerInfo[playerid][pNovac]);
   INI_WriteInt(File,"Admin",PlayerInfo[playerid][pAdmin]);
   INI_WriteInt(File,"Vlasnik",PlayerInfo[playerid][pVlasnik]);
   INI_WriteInt(File,"Ubistva",PlayerInfo[playerid][pUbistva]);
   INI_WriteInt(File,"Smrti",PlayerInfo[playerid][pSmrti]);
   INI_WriteInt(File,"Ulogovan",PlayerInfo[playerid][Ulogovan]);
   INI_WriteInt(File,"Zatvoren",PlayerInfo[playerid][Zatvoren]);
   INI_WriteInt(File,"AdminSkin",PlayerInfo[playerid][AdminSkin]);
   INI_WriteInt(File,"JailVreme",PlayerInfo[playerid][jailvreme]);
   INI_WriteInt(File,"Banovan",PlayerInfo[playerid][pBanovan]);
   INI_WriteInt(File,"KosacTrave",poslovi[playerid][Kosac_Trave]);
   INI_WriteInt(File,"Betonac",poslovi[playerid][Betonac]);
   INI_WriteInt(File,"ADuty",PlayerInfo[playerid][AdminDuty]);
   INI_WriteInt(File,"Skin",PlayerInfo[playerid][pSkin]);
   INI_WriteInt(File,"Warn",PlayerInfo[playerid][Warn]);
   INI_WriteInt(File,"Mute",PlayerInfo[playerid][Mute]);
   INI_WriteInt(File,"MuteVreme",PlayerInfo[playerid][MuteVreme]);
   INI_WriteInt(File,"Skripter",PlayerInfo[playerid][pSkripter]);
   INI_Close(File);
   return 1;
}
[/pawn]
Poslednja Izmena: Januar 20, 2019, 11:31:22 PRE PODNE od Bašovski