Beiträge von Anti.

    Moin,
    wenn ich meinen Server auf Linux starten möchte, kann er den Gamemode nicht laden, dann kommt da nur der Standard Gamemode.. (nichts).



    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team



    [18:20:24] filterscripts = "" (string)
    [18:20:24]
    [18:20:24] Server Plugins
    [18:20:24] --------------
    [18:20:24] Loading plugin: sscanf.so
    [18:20:24]



    [18:20:24] ===============================



    [18:20:24] sscanf plugin loaded.



    [18:20:24] (c) 2009 Alex "Y_Less" Cole



    [18:20:24] ===============================



    [18:20:24] Loaded.
    [18:20:24] Loading plugin: streamer.so
    [18:20:24]



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



    [18:20:24] Loaded.
    [18:20:24] Loading plugin: audio.so
    [18:20:24]
    *** Audio Plugin v0.4 by Incognito loaded ***



    [18:20:24] Loaded.
    [18:20:24] Loading plugin: mysql.so
    [18:20:24] Failed (libmysqlclient_r.so.16: cannot open shared object file: No such file or directory)
    [18:20:24] Loading plugin: crashdetect.so
    [18:20:24] Loaded.
    [18:20:24] Loaded 4 plugins.



    [18:20:24]
    [18:20:24] Filterscripts
    [18:20:24] ---------------
    [18:20:24] Loaded 0 filterscripts.



    [18:20:24] [crashdetect]: gamemodes/MM.amx does not contain debug information
    [18:20:24] Script[gamemodes/MM.amx]: Run time error 19: "File or function is not found"
    [18:20:24] Number of vehicle models: 0

    Ich blick da nicht durch ich kopiere immer wieder den MM.amx Gamemode von meinem Server dahin aber es verwendet immer die alte MM.amx Datei die gar nicht mehr existiert.


    //Edit: Hab den gefixten Error-Gamemode eben von meinem Windows PC zum Linux Hoster kopiert.




    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team



    [16:53:01] filterscripts = "" (string)
    [16:53:01]
    [16:53:01] Server Plugins
    [16:53:01] --------------
    [16:53:01] Loading plugin: sscanf.so
    [16:53:01]



    [16:53:01] ===============================



    [16:53:01] sscanf plugin loaded.



    [16:53:01] (c) 2009 Alex "Y_Less" Cole



    [16:53:01] ===============================



    [16:53:01] Loaded.
    [16:53:01] Loading plugin: streamer.so
    [16:53:01]



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



    [16:53:01] Loaded.
    [16:53:01] Loading plugin: audio.so
    [16:53:01]
    *** Audio Plugin v0.4 by Incognito loaded ***



    [16:53:01] Loaded.
    [16:53:01] Loading plugin: mysql.so
    [16:53:01] Failed (plugins/mysql.so: invalid ELF header)
    [16:53:01] Loading plugin: crashdetect.so
    [16:53:01] Loaded.
    [16:53:01] Loaded 4 plugins.



    [16:53:01]
    [16:53:01] Filterscripts
    [16:53:01] ---------------
    [16:53:01] Loaded 0 filterscripts.



    [16:53:01] [crashdetect]: gamemodes/MM.amx does not contain debug information
    [16:53:01] Script[gamemodes/MM.amx]: Run time error 19: "File or function is not found"
    [16:53:01] Number of vehicle models: 0

    Funktioniert, Danke :P


    Ok ehm hab nochn Problem mein Server will einfach den Gamemode nicht laden



    echo Executing Server Config...
    lanmode 0
    maxplayers 50
    gamemode0 MM 1
    filterscripts
    plugins sscanf streamer audio mysql crashdetect
    announce 0
    query 1
    chatlogging 0
    weburl www.sa-mp.com
    onfoot_rate 40
    incar_rate 40
    weapon_rate 40
    stream_distance 300.0
    stream_rate 1000
    maxnpc 0
    logtimeformat [%H:%M:%S]
    language German
    lagcompmode 0


    SA-MP Dedicated Server
    ----------------------
    v0.3.7-R2, (C)2005-2015 SA-MP Team



    [17:35:34] filterscripts = "" (string)
    [17:35:34]
    [17:35:34] Server Plugins
    [17:35:34] --------------
    [17:35:34] Loading plugin: sscanf
    [17:35:34]



    [17:35:34] ===============================



    [17:35:34] sscanf plugin loaded.



    [17:35:34] (c) 2009 Alex "Y_Less" Cole



    [17:35:34] ===============================



    [17:35:34] Loaded.
    [17:35:34] Loading plugin: streamer
    [17:35:34]



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



    [17:35:34] Loaded.
    [17:35:34] Loading plugin: audio
    [17:35:34]



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




    [17:35:34] Loaded.
    [17:35:34] Loading plugin: mysql
    [17:35:34] >> plugin.mysql: R39-4 successfully loaded.
    [17:35:34] Loaded.
    [17:35:34] Loading plugin: crashdetect
    [17:35:34] CrashDetect v4.15.1 is OK.
    [17:35:34] Loaded.
    [17:35:34] Loaded 5 plugins.



    [17:35:34]
    [17:35:34] Filterscripts
    [17:35:34] ---------------
    [17:35:34] Loaded 0 filterscripts.



    [17:35:34] Uhrzeit initialisiert
    [17:35:34] Lotto initialisiert
    [17:35:34]
    --------------------------------------
    [17:35:34] Vault of San Andreas - Anti
    [17:35:34] --------------------------------------



    [17:35:34] [MySQL] Verbindungsaufbau...
    [17:35:34] [MySQL] Die Verbindung zur Datenbank wurde erfolgreich hergestellt! Handle: 1
    [17:35:34] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
    [17:35:34] Script[gamemodes/MM.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
    [17:35:34] Number of vehicle models: 5


    [17:28:12] [MySQL] Verbindungsaufbau...
    [17:28:12] [MySQL] Die Verbindung zur Datenbank wurde erfolgreich hergestellt! Handle: 1
    [17:28:12] [debug] Run time error 20: "Invalid index parameter (bad entry point)"
    [17:28:12] Script[gamemodes/MM.amx]: Run time error 20: "Invalid index parameter (bad entry point)"
    [17:28:12] Number of vehicle models: 5


    Kurze Frage: wo soll die .pdb Datei hin?

    @Jeffry


    Ganz oben im Script
    new taxvalue;// Da es unten im Script nicht funktioniert -> kommen wirre Zahlen raus
    new scheck = PlayerInfo[playerid][pPaycheck];
    new steuer = taxvalue / 100;
    new lohnsteuer = scheck * steuer;
    new gehalt = scheck * taxvalue / 100;


    OnGameModeInit
    mysql_pquery(handle, "SELECT tax FROM staat WHERE id = 1", "OnTaxLoad", "");


    Ganz unten im Script


    forward OnTaxLoad();
    public OnTaxLoad()
    {
    taxvalue = cache_get_row_int(0, 0);
    return 1;
    }





    @PaydayInit(playerid);
    @PaydayInit(playerid)
    {
    if(IsPlayerConnected(playerid))
    {
    PlayerInfo[playerid][pPayseconds]++;
    if(PlayerInfo[playerid][pPayseconds] >= 60)
    {
    PlayerInfo[playerid][pPayseconds] = 0;
    PlayerInfo[playerid][pPayminutes]++;
    if(PlayerInfo[playerid][pPayminutes] >= 60)
    {
    PlayerInfo[playerid][pPayminutes] = 0;
    PlayerInfo[playerid][pBank] += gehalt;
    SendClientMessage(playerid, COLOR_WHITE, "==========================");
    SendClientMessage(playerid, COLOR_WHITE, "Kontoauszug");
    SendClientMessage(playerid, COLOR_WHITE, "Lohnüberweisung +%d", scheck);
    SendClientMessage(playerid, COLOR_WHITE, "Lohnsteuer -%d", lohnsteuer);
    /*if(PlayerInfo[playerid][pRented] == 1)
    {
    SendClientMessage(playerid, COLOR_WHITE, "Miete -%d", pRentBill);
    }*/
    SendClientMessage(playerid, COLOR_WHITE, "Summe +%d", gehalt);
    SendClientMessage(playerid, COLOR_WHITE, "==========================");
    GameTextForPlayer(playerid, "PAYDAY", 1000, 0);
    new kassenstring[256];
    format(kassenstring, sizeof(kassenstring), "UPDATE staat SET kasse = '%d' WHERE id = 1", lohnsteuer);
    mysql_tquery(handle, kassenstring);
    }
    }
    }
    }

    Ok naja keine Ahnung ob es funktioniert, habe, falls du dich erinnerst, immer noch diesen Fehler mit den wirren Zahlen wie aus meinem Bankrob Problem Hilfethread.


    Nun kann ich "v unten v" nicht richtig einsetzen. Setze ich sie oben ins Script ein kommt ein error weil taxvalue oben noch keinen Wert hat, sondern einfach nur ein Wort ist.
    Setze ich es unten bei meinem Timer ein, kriege ich wieder wirre Zahlen wie 1.836.368.368.963 statt 14.700 raus (exakte Zahl die rauskommen müsste)...

    new scheck = PlayerInfo[playerid][pPaycheck];
    new steuer = taxvalue / 100;
    new lohnsteuer = scheck * steuer;
    new gehalt = scheck * taxvalue / 100;

    Dann kannst du die Variable ja auch mit dem Befehl ändern.
    Laden kannst du es so:
    mysql_pquery(dbhandle, "SELECT taxvalue FROM tabelle WHERE ...", "OnTaxLoad", ""); //anpassen


    Und dann:
    forward OnTaxLoad();public OnTaxLoad(){ taxvalue = cache_get_row_int(0, 0); return 1;}

    Kriege einen Error "undefined symbol dbhandle", muss ich einfach new dbhandle; oder fehlt mir 'was?