Beiträge von Slash™

    jo, nun crashed der server wieder, deswegen


    [10:28:35] AC: Initialisiering ...
    [10:28:35] [debug] Server crashed while executing Godbrother.amx
    [10:28:35] [debug] AMX backtrace:
    [10:28:35] [debug] #0 native fwrite () [00405710] from samp-server.exe
    [10:28:35] [debug] #1 00053e54 in public LogText (0x0008078c) from Godbrother.amx
    [10:28:35] [debug] #2 00051a14 in public ParseCurrentSettings () from Godbrother.amx
    [10:28:35] [debug] #3 0001fa68 in public OnGameModeInit () from Godbrother.amx
    [10:28:35] [debug] Native backtrace:
    [10:28:35] [debug] #0 77d822b2 in ?? () from C:\Windows\SysWOW64\ntdll.dll
    [10:28:35] [debug] #1 00492860 in ?? () from C:\Users\Arbeits-PC\Desktop\Godbrother\samp-server.exe
    [10:28:35] [debug] #2 0040534e in ?? () from C:\Users\Arbeits-PC\Desktop\Godbrother\samp-server.exe

    ----------
    Loaded log file: "server_log.txt".
    ----------


    SA-MP Dedicated Server
    ----------------------
    v0.3x, (C)2005-2013 SA-MP Team


    [10:22:07] filterscripts = "" (string)
    [10:22:07]
    [10:22:07] Server Plugins
    [10:22:07] --------------
    [10:22:07] Loading plugin: mysql
    [10:22:07]


    > MySQL plugin R5 successfully loaded.


    [10:22:07] Loaded.
    [10:22:07] Loading plugin: streamer
    [10:22:07]


    *** Streamer Plugin v2.5.2 by Incognito loaded ***


    [10:22:07] Loaded.
    [10:22:07] Loading plugin: sscanf
    [10:22:07] Failed.
    [10:22:07] Loading plugin: audio
    [10:22:08]


    *** Audio Plugin v0.5 by Incognito loaded ***


    [10:22:08] Loaded.
    [10:22:08] Loading plugin: crashdetect
    [10:22:08] CrashDetect v4.11.2 is OK.
    [10:22:08] Loaded.
    [10:22:08] Loading plugin: nativechecker
    [10:22:08] Loaded.
    [10:22:08] Loaded 5 plugins.


    [10:22:08]
    [10:22:08] Filterscripts
    [10:22:08] ---------------
    [10:22:08] Loaded 0 filterscripts.


    [10:22:08] Error: Function not registered: 'Streamer_CallbackHook'
    [10:22:08] Error: Function not registered: 'sscanf'
    [10:22:08] [debug] Run time error 19: "File or function is not found"
    [10:22:08] [debug] Streamer_CallbackHook
    [10:22:08] [debug] sscanf
    [10:22:08] [debug] Run time error 19: "File or function is not found"
    [10:22:08] [debug] Streamer_CallbackHook
    [10:22:08] [debug] sscanf
    [10:22:08] Script[gamemodes/test.amx]: Run time error 19: "File or function is not found"
    [10:22:08] Number of vehicle models: 0



    /e
    habe nun den sscanf stock statt dem plugin, geht aber noch nicht

    Heyho,
    undzwar wollte ich den godbrother bisschen weiter editieren,
    habe es geupdatet, neu compiled, keine errors/warning, aber beim starten kommt:



    [10:01:43] Script[gamemodes/Godbrother.amx]: Run time error 19: "File or function is not found"
    [10:01:43] Number of vehicle models: 0


    woran könnte das liegen??

    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(1253) : error 035: argument type mismatch (argument 1)
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3094) : error 001: expected token: ")", but found "("
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3094) : error 017: undefined symbol "pID"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3094) : error 021: symbol already defined: "format"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3094 -- 3097) : fatal error 107: too many error messages on one line


    zeile 1253,

    BanSpieler(SpielerName(pID),SpielerName(playerid),(reason));

    zeile 3094 3097

    stock BanSpieler(SpielerName(pID),SpielerName(playerid),reason[])
    {
    //new string[128];
    format(string,128,"INSERT INTO banlog(name,admin,grund) VALUES ('%s','%s','%s')",SpielerName(pID),SpielerName(playerid),reason);

    nu´n bekomme ich folgende errors


    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(1255) : error 017: undefined symbol "giveplayerid"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3100) : error 017: undefined symbol "NAME_vom_Spieler"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3102) : error 017: undefined symbol "NAME_vom_Spieler"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3097) : warning 203: symbol is never used: "grund"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3097) : warning 203: symbol is never used: "playerid"
    C:\Users\Arbeits-PC\Desktop\dorf rl by landwirt R5 mysql\gamemodes\dorf.pwn(3097) : warning 203: symbol is never used: "giveplayerid"
    Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase

    @ ReborN:
    hab es auch mal ausprobiert, bei mir kommt aber nichts in die tabelle.
    habe eine tabelle mit den namen banlog erstellt.


    hier der befehl

    ocmd:ban(playerid,params[])
    {
    if(SpielerInfo[playerid][Adminlevel]>=5)
    {
    new string[128],reason[128],pID;
    if(sscanf(params,"us",pID,reason))return SendClientMessage(playerid, grau, "Benutze: /ban [ID] [Grund]");
    format(reason,sizeof(reason),"Spieler %s wurde von Admin %s vom Server gebannt, Grund %d",SpielerName(pID),SpielerName(playerid),reason);
    SendClientMessageToAll(rot,string);
    printf("***[%s] %s hat %s vom server Gebannt***",adminrang(playerid),SpielerName(playerid),SpielerName(pID));
    SpielerInfo[playerid][ban]=1;
    format(string,128,"INSERT INTO banlog (Name,Bann_Admin,Grund) VALUES ('%s','%s','%s')",SpielerName(pID),SpielerName(playerid),reason);
    Kick(pID);
    }
    else
    {
    falschadmin(playerid);
    }
    return 1;
    }