https://open.mp logo
Docs
Join the conversationJoin Discord
Channels
general
general-show-off
opemp-dev
open-mp-server-beta
openmp-samp-help
pawn-help
sa-show-off
samp-and-sa
samp-android
support-forum
Powered by Linen
general
  • v

    victorious-lamp-45130

    12/30/2022, 12:29 AM
    c
    hook native TogglePlayerSpectating(playerid, toggle)
    {
        printf("TogglePlayerSpectating called");
        PrintBacktrace();
        return continue(playerid, toggle);
    }
  • v

    victorious-lamp-45130

    12/30/2022, 12:29 AM
    oke men im gona test
  • v

    victorious-lamp-45130

    12/30/2022, 12:33 AM
    @cool-battery-88185 toggleplayerspectating isnt called when it crashes
  • c

    cool-battery-88185

    12/30/2022, 12:34 AM
    then how does removing it solve the issue
  • c

    cool-battery-88185

    12/30/2022, 12:34 AM
    wtf
  • v

    victorious-lamp-45130

    12/30/2022, 12:34 AM
    idk
  • v

    victorious-lamp-45130

    12/30/2022, 12:34 AM
    the server crashes after onplayerstatechange returns
  • c

    cool-battery-88185

    12/30/2022, 12:37 AM
    the thing is
  • c

    cool-battery-88185

    12/30/2022, 12:37 AM
    in here
  • c

    cool-battery-88185

    12/30/2022, 12:37 AM
    you have spectator sync handling
  • v

    victorious-lamp-45130

    12/30/2022, 12:37 AM
    yes
  • v

    victorious-lamp-45130

    12/30/2022, 12:37 AM
    i mean the player is spectating
  • c

    cool-battery-88185

    12/30/2022, 12:38 AM
    but
    TogglePlayerSpectating
    isn't called is it
  • v

    victorious-lamp-45130

    12/30/2022, 12:38 AM
    it's called one time in onplayerconnect
  • v

    victorious-lamp-45130

    12/30/2022, 12:38 AM
    it crashes only when sync is received i guess ?
  • c

    cool-battery-88185

    12/30/2022, 12:39 AM
    does this ever work? even for once when it's called in OnPlayerConnect
  • l

    little-cat-35250

    12/30/2022, 12:39 AM
    Excess of textdraws
  • v

    victorious-lamp-45130

    12/30/2022, 12:39 AM
    yes
  • v

    victorious-lamp-45130

    12/30/2022, 12:40 AM
    prints only once
  • c

    cool-battery-88185

    12/30/2022, 12:40 AM
    so in an empty script where theres only OnPlayerConnect with TogglePlayerSpectating inside, does it also crash?
  • v

    victorious-lamp-45130

    12/30/2022, 12:40 AM
    it didn't months ago but let me try again
  • b

    brief-balloon-86998

    12/30/2022, 12:40 AM
    Wait, show the full error.
  • b

    brief-balloon-86998

    12/30/2022, 12:40 AM
    As text.
  • v

    victorious-lamp-45130

    12/30/2022, 12:41 AM
    which error
  • c

    cool-battery-88185

    12/30/2022, 12:41 AM
    that's his own bt print, not caught by crashdetect
  • b

    brief-balloon-86998

    12/30/2022, 12:41 AM
    Yes
  • c

    cool-battery-88185

    12/30/2022, 12:41 AM
    oh.
  • c

    cool-battery-88185

    12/30/2022, 12:41 AM
    YSI is doing something
  • v

    victorious-lamp-45130

    12/30/2022, 12:41 AM
    [2022-12-29T20:33:14-0400] [Info] [dbg] [func] OnPlayerConnect(playerid = 0)
    [2022-12-29T20:33:14-0400] [Info] TogglePlayerSpectating called
    [2022-12-29T20:33:14-0400] [Info] [debug] AMX backtrace:
    [2022-12-29T20:33:14-0400] [Info] [debug] #0 native PrintBacktrace () in crashdetect.DLL
    [2022-12-29T20:33:14-0400] [Info] [debug] #1 00169bf0 in _@yHTogglePlayerSpectating@09 (playerid=0, toggle=1) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\main.pwn:456
    [2022-12-29T20:33:14-0400] [Info] [debug] #2 00169a54 in public TERR_OnPlayerConnect (playerid=0) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\main.pwn:453
    [2022-12-29T20:33:14-0400] [Info] [debug] #3 0010e034 in public TD_OnPlayerConnect (playerid=0) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\server/territories/callbacks.pwn:100
    [2022-12-29T20:33:14-0400] [Info] [debug] #4 000cfb54 in public ANIMS_OnPlayerConnect (playerid=0) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\server/textdraws/callbacks.pwn:2492
    [2022-12-29T20:33:14-0400] [Info] [debug] #5 0009532c in public OMP_PS_OnPlayerConnect (playerid=0) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\core/animations/callbacks.pwn:91
    [2022-12-29T20:33:14-0400] [Info] [debug] #6 0003d8c4 in public HYFIX_OnPlayerConnect (playerid=0) at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\core/fixes/player.pwn:44
  • v

    victorious-lamp-45130

    12/30/2022, 12:41 AM
    [2022-12-29T20:33:14-0400] [Info] [debug] #7 0003d78c in public Iter_OnPlayerConnect (0)  at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\core/fixes/player.pwn:11
    [2022-12-29T20:33:14-0400] [Info] [debug] #8 00039638 in public Android_OnPlayerConnect (playerid=0) at compiler\include\YSI\YSI_Data\y_foreach\y_foreach_iterators.inc:696
    [2022-12-29T20:33:14-0400] [Info] [debug] #9 0000bee4 in public SSCANF_OnPlayerConnect (0)  at compiler\include\YSI\YSI_Core\y_core\..\..\YSI_Players\y_android\y_android_entry.inc:169
    [2022-12-29T20:33:14-0400] [Info] [debug] #10 00001058 in public OnPlayerConnect (playerid=0) at compiler\include\sscanf2.inc:1107
Powered by Linen
Title
v

victorious-lamp-45130

12/30/2022, 12:41 AM
[2022-12-29T20:33:14-0400] [Info] [debug] #7 0003d78c in public Iter_OnPlayerConnect (0)  at C:\Users\Heix\Documents\Projects\hyaxe-roleplay\source\core/fixes/player.pwn:11
[2022-12-29T20:33:14-0400] [Info] [debug] #8 00039638 in public Android_OnPlayerConnect (playerid=0) at compiler\include\YSI\YSI_Data\y_foreach\y_foreach_iterators.inc:696
[2022-12-29T20:33:14-0400] [Info] [debug] #9 0000bee4 in public SSCANF_OnPlayerConnect (0)  at compiler\include\YSI\YSI_Core\y_core\..\..\YSI_Players\y_android\y_android_entry.inc:169
[2022-12-29T20:33:14-0400] [Info] [debug] #10 00001058 in public OnPlayerConnect (playerid=0) at compiler\include\sscanf2.inc:1107
View count: 1