[Problem] /setprem macht Segmentation fault

Wichtiger Hinweis: Bitte ändert nicht manuell die Schriftfarbe auf schwarz sondern belasst es bei der Standardeinstellung. Somit tragt ihr dazu bei dass euer Text auch bei Verwendung unseren dunklen Forenstils noch lesbar ist!

Tipp: Ihr wollt längere Codeausschnitte oder Logfiles bereitstellen? Benutzt unseren eigenen PasteBin-Dienst Link
  • Hey Brotfische!!


    dcmd_setprem(playerid, cmdtext[]){ new tmp[256],idx; tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_WHITE,"USAGE: /setprem [ID]"); } else { if(!IsPlayerConnected(strval(tmp))) { SendClientMessage(playerid, COLOR_WHITE,"* This player is not active."); } else { new INI:File = INI_Open(UserPath(playerid)); INI_WriteInt(File, "Premium", 1); SendClientMessage(strval(tmp), COLOR_WHITE, "* %s (Admin) has give you Premium.", Player(playerid)); } } return 1;}



    Warum kommt wenn ich /setprem ID mache der Server ab?? Bitte um Hilfe!!


    MfG Andre

  • nene ^^ kommt davon wenn mann etwas getrunken hat dabei ^^


    Run time error 19: "File or function is not found"[20:39:25] [debug] SSCANF_Init[20:39:25] [debug] SSCANF_Join[20:39:25] [debug] SSCANF_Leave[20:39:25] [debug] Server crashed while executing freeroam.amx[20:39:25] [debug] AMX backtrace:[20:39:25] [debug] #0 native SendClientMessage () [080d75c0] from samp03svr[20:39:25] [debug] #1 0001ce58 in ?? () from freeroam.amx[20:39:25] [debug] #2 00011e54 in public OnPlayerCommandText () from freeroam.amx[20:39:25] [debug] System backtrace:[20:39:25] [debug] #0 b7377f41 in _ZN10StackTraceC1EPv () from plugins/crashdetect.so[20:39:25] [debug] #1 b736e41f in _ZN11crashdetect20PrintSystemBacktraceEPv () from plugins/crashdetect.so[20:39:25] [debug] #2 b736c963 in _ZN11crashdetect15SystemExceptionEPv () from plugins/crashdetect.so[20:39:25] [debug] #3 b73773c1 in ?? () from plugins/crashdetect.so[20:39:25] [debug] #4 b76f68e0 in ?? () from /lib32/libpthread.so.0[20:39:25] [debug] #5 b74dae8f in ?? () from /lib32/libc.so.6[20:39:25] [debug] #6 b74a7b0f in _IO_vfprintf () from /lib32/libc.so.6[20:39:25] [debug] #7 b74c5cec in vsprintf () from /lib32/libc.so.6[20:39:25] [debug] #8 080abe41 in ?? () from ./samp03svr[20:39:25] [debug] #9 080d7669 in ?? () from ./samp03svr[20:39:25] [debug] #10 080954a4 in ?? () from ./samp03svr[20:39:25] [debug] #11 b736d5a2 in _ZN11crashdetect13DoAmxCallbackEiPiS0_ () from plugins/crashdetect.so[20:39:25] [debug] #12 b737565e in ?? () from plugins/crashdetect.so[20:39:25] [debug] #13 b737c926 in amx_Exec () from plugins/crashdetect.so[20:39:25] [debug] #14 b736d622 in _ZN11crashdetect9DoAmxExecEPii () from plugins/crashdetect.so[20:39:25] [debug] #15 b7375699 in ?? () from plugins/crashdetect.so[20:39:25] [debug] #16 080a4da2 in ?? () from ./samp03svr[20:39:25] [debug] #17 080afcca in ?? () from ./samp03svr[20:39:25] [debug] #18 080733b1 in ?? () from ./samp03svr[20:39:25] [debug] #19 080734a2 in ?? () from ./samp03svr[20:39:25] [debug] #20 0807d2b0 in ?? () from ./samp03svr[20:39:25] [debug] #21 080ad426 in ?? () from ./samp03svr[20:39:25] [debug] #22 080ad652 in ?? () from ./samp03svr[20:39:25] [debug] #23 080a8fb3 in ?? () from ./samp03svr[20:39:25] [debug] #24 b747dca6 in __libc_start_main () from /lib32/libc.so.6[20:39:25] [debug] #25 0804b491 in ?? () from ./samp03svr



    Das sagt mir der crasdetect :( bitte helft mir