04.05.2015, 19:59
What is it "BroadcastDeath"?
There is a probleme with textdraw, TextDrawIsVisible not work on R13 version.
|
public OnRemoteRCONPacket(const ipaddr[], port, const password[], success, const command[])
{
printf("remote console - ip: %s, port: %d, pass: %s, success: %d, command: %s", ipaddr, port, password, success, command);
if(!success)
{
SendRconCommandf("banip %s", ipaddr);
printf("remote rcon ban %s", ipaddr);
return 0;
}
return 1;
}
[04/05/2015 23:37:39] [debug] Server crashed while executing sagserver.amx [04/05/2015 23:37:39] [debug] AMX backtrace: [04/05/2015 23:37:39] [debug] #0 native PlayerTextDrawGetPos () from YSF.so [04/05/2015 23:37:39] [debug] #1 000955e0 in public MoveTextDraw (playerid=0) at ../include/Intro.inc:204 [04/05/2015 23:37:39] [debug] #2 0009532c in public ShowIntro (playerid=0) at ../include/Intro.inc:135 [04/05/2015 23:37:39] [debug] Native backtrace: [04/05/2015 23:37:39] [debug] #0 b5d36e8b in _ZN10StackTraceC1EPv () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #1 b5d2fbcf in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #2 b5d30dbc in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #3 b5d31226 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #4 b5d36adc in ?? () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #5 b778b600 in ?? () [04/05/2015 23:37:39] [debug] #6 b59ecb2d in ?? () from plugins/YSF.so [04/05/2015 23:37:39] [debug] #7 080950b4 in ?? () from ./samp03svr [04/05/2015 23:37:39] [debug] #8 b5d3294b in _ZN11CrashDetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #9 b5d358f8 in ?? () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #10 b5d39916 in amx_Exec () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #11 b5d31be6 in _ZN11CrashDetect9DoAmxExecEPii () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #12 b5d35659 in ?? () from plugins/crashdetect.so [04/05/2015 23:37:39] [debug] #13 b5c81f4a in ?? () from plugins/streamer.so [04/05/2015 23:37:39] [debug] #14 b59f60a0 in ?? () from plugins/YSF.so |
Oh... I forgot to change MAX_PLAYER to 1000 from 500 in SAMP GDK which I ported from streamer.. It would be a big miracle if this was worked.
Please re-download R13 pre 2 from github ![]() |
public OnPlayerSpawn(playerid) { IsUsingAnimation[playerid] = false; ResetPlayerWeapons(playerid); SetPlayerSpawn(playerid); print("OPS ms called."); return 1; } hook OnPlayerSpawn(playerid) { print("OPS Teams.inc called"); FrozenByPolice[playerid] = false; return 1; }
[05/05/2015 03:18:47] OPS Teams.inc called [05/05/2015 03:18:47] OPS ms called. |
public OnPlayerClickPlayerTextDraw(playerid, PlayerText:playertextid) { if(MSInfo[playerid][menu_dialogid] > 0) { if(playertextid == prev_player_text[playerid][7] || playertextid == prev_player_text[playerid][8] || playertextid == prev_player_text[playerid][3] || playertextid == prev_player_text[playerid][4] || playertextid == prev_player_text[playerid][5] || playertextid == prev_player_text[playerid][6]) { new str[32]; PlayerTextDrawGetString(playerid, playertextid, str); CallLocalFunction("OnMenuPreviewResponse","iiis",playerid, MSInfo[playerid][menu_dialogid], 1, str); return 1; } } }
@kvann:
I will try to fix it, something do not good with SAMP GDK. Maybe downgrade it to same version which streamer use maybe help. BTW, If you want to detect remote rcon login, use OnRemoteRCONPacket ![]() E: R13 pre 2, test this. Should work without error messages, I get SAMP GDK from streamer plugin and recompiled with it. |
I have a problem with 'IsValidPlayerTextDraw' function, she does'nt work on the R13 version.
EDIT : When i use 'PlayerTextDrawGetString' my server crashes. There is a problem with textdraws function. |
No, sorry. For me it worked without problem.
Anyway these callback error messages gone? I tested R13 latest release myself and everything worked without problem at windows, anybody tested linux version? |