Beiträge von Sam Cooper

    Immer wenn ich mein Server starte kommt:



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


    SA-MP Dedicated Server
    ----------------------
    v0.3c R2, (C)2005-2011 SA-MP Team


    [16:57:55]
    [16:57:55] Server Plugins
    [16:57:55] --------------
    [16:57:55] Loading plugin: mysql.so
    [16:57:55] Failed (libmysqlclient_r.so.16: wrong ELF class: ELFCLASS64)
    [16:57:55] Loading plugin: sscanf.so
    [16:57:55]


    [16:57:55] ===============================


    [16:57:55] sscanf plugin loaded.


    [16:57:55] (c) 2009 Alex "Y_Less" Cole


    [16:57:55] ===============================


    [16:57:55] Loaded.
    [16:57:55] Loaded 1 plugins.


    [16:57:55]
    [16:57:55] Filter Scripts
    [16:57:55] ---------------
    [16:57:55] Loading filter script 'base.amx'...
    [16:57:55]
    --Base FS loaded.


    [16:57:55] Loading filter script 'gl_actions.amx'...
    [16:57:55] Loading filter script 'gl_property.amx'...
    [16:57:55]
    -----------------------------------
    [16:57:55] Grand Larceny Property Filterscript
    [16:57:55] -----------------------------------


    [16:57:55] Loading filter script 'gl_realtime.amx'...
    [16:57:55] Loaded 4 filter scripts.


    [16:57:55] Reading File: blank
    [16:57:55] Reading File: properties/houses.txt
    [16:57:55] Reading File: properties/businesses.txt
    [16:57:55] Reading File: properties/banks.txt
    [16:57:55] Reading File: properties/police.txt
    [16:57:55] Script[gamemodes/mysql.amx]: Run time error 19: "File or function is not found"
    [16:57:55] Number of vehicle models: 0




    Bitte um hilfe :(


    MFG


    Ingo

    Hallo Liebe Fische ,


    Ich hab ein Problem wen ich mein Server Starte kommt immer:



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


    SA-MP Dedicated Server
    ----------------------
    v0.3c R2, (C)2005-2011 SA-MP Team


    [13:16:50]
    [13:16:50] Server Plugins
    [13:16:50] --------------
    [13:16:50] Loading plugin: mysql.so
    [13:16:50] Failed (/emul/ia32-linux/lib/libmysqlclient_r.so.16: version `libmysqlclient_16' not found (required by plugins/mysql.so))
    [13:16:50] Loading plugin: sscanf.so
    [13:16:50]


    [13:16:50] ===============================


    [13:16:50] sscanf plugin loaded.


    [13:16:50] (c) 2009 Alex "Y_Less" Cole


    [13:16:50] ===============================


    [13:16:50] Loaded.
    [13:16:50] Loaded 1 plugins.


    [13:16:50]
    [13:16:50] Filter Scripts
    [13:16:50] ---------------
    [13:16:50] Loading filter script 'base.amx'...
    [13:16:50]
    --Base FS loaded.


    [13:16:50] Loading filter script 'gl_actions.amx'...
    [13:16:50] Loading filter script 'gl_property.amx'...
    [13:16:50]
    -----------------------------------
    [13:16:50] Grand Larceny Property Filterscript
    [13:16:50] -----------------------------------


    [13:16:50] Loading filter script 'gl_realtime.amx'...
    [13:16:50] Loaded 4 filter scripts.


    [13:16:50] Reading File: blank
    [13:16:50] Reading File: properties/houses.txt
    [13:16:50] Reading File: properties/businesses.txt
    [13:16:50] Reading File: properties/banks.txt
    [13:16:50] Reading File: properties/police.txt
    [13:16:50] Script[gamemodes/selfmade.amx]: Run time error 19: "File or function is not found"
    [13:16:50] Number of vehicle models: 0


    kan mr einer helfen ???



    MFG


    TyrsHammer

    So sollte das warnig weck sein ^^



    stock mysql_GetFloat(Table[], Field[], Where[], Is[])
    {
    new query[128];
    mysql_real_escape_string(Table, Table);
    mysql_real_escape_string(Field, Field);
    mysql_real_escape_string(Where, Where);
    mysql_real_escape_string(Is, Is);
    format(query, 128, "SELECT %s FROM %s WHERE %s = '%s'", Field, Table, Where, Is);
    mysql_query(query);
    mysql_store_result();
    new Float:sqlfloat = mysql_fetch_float();
    mysql_free_result();
    return sqlfloat;
    }


    ocmd:makeadmin(playerid,params[])
    {
    if(isPlayerAnAdmin(playerid,10)) return SendClientMessage(playerid,Rot,"Du bist kein Admin");
    {
    new pID, rank;
    if(sscanf(params,"ui",pID,rank)) return SendClientMessage(playerid,Rot,"/makeadmin [Name/ID] [rank]");
    if(rank<0||rank>10) return SendClientMessage(playerid,grün,"Bitte einen rank von 1-10 Auswählen");
    SetPVarInt(pID,"Adminlvl",rank);
    SpielerSpeichern(pID);
    }
    return 1;
    }


    So müsste es gehen

    Ich habe ein BizSystem geschriben .


    in der log File vom server wird es geladen


    aber das Pickup wird nicht erstellt .



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


    SA-MP Dedicated Server
    ----------------------
    v0.3d RC2, (C)2005-2011 SA-MP Team


    [23:23:08] filterscripts = "" (string)
    [23:23:08]
    [23:23:08] Server Plugins
    [23:23:08] --------------
    [23:23:08] Loading plugin: mysql.so
    [23:23:08]


    > MySQL plugin R5 successfully loaded.


    [23:23:08] Loaded.
    [23:23:08] Loading plugin: sscanf.so
    [23:23:08]


    [23:23:08] ===============================


    [23:23:08] sscanf plugin loaded.


    [23:23:08] (c) 2009 Alex "Y_Less" Cole


    [23:23:08] ===============================


    [23:23:08] Loaded.
    [23:23:08] Loaded 2 plugins.


    [23:23:08]
    [23:23:08] Filter Scripts
    [23:23:08] ---------------
    [23:23:08] Loaded 0 filter scripts.


    [23:23:08] Wetter ID: 24
    [23:23:08] <-| [MYSQL] Verbindung zur Datenbank wurde erfolgreich hergestellt!
    [23:23:08] DEBUG: 3|Niemand|Niemand|Test1|1099.47|-1793.11|13.6051|0|250000
    [23:23:08] DEBUG: 4|[NCR]Ingo|[NCR]Big_ben|Server-Biz|1099.5|-1798.22|13.6052|1|1000000
    [23:23:08]
    ----------------------------------
    [23:23:08] Blank Gamemode by your name here
    [23:23:08] ----------------------------------


    [23:23:08] Number of vehicle models: 9
    [23:23:42] Incoming connection: 91.66.78.89:63173



    #include <a_samp>
    #include <a_mysql>
    #include <dini>
    #include <Obj_Streamer>
    #include <md5>
    #include <sscanf>


    #define MAX_BIZ 150



    #define SQL_HOST "127.0.0.1"
    #define SQL_USER "root"
    #define SQL_PASS "xxxxxxxx"
    #define SQL_DATA "samp"



    enum BizInfomation
    {
    pBizID,
    pBizOwner[128],
    pBizCoOwner[128],
    pBizName[128],
    Float:pBizPosX,
    Float:pBizPosY,
    Float:pBizPosZ,
    pBizOwned,
    pBizPreis,
    };


    new BizzInfo[MAX_BIZ][BizInfomation];


    Unter OnGameModInit()


    LoadBusiness();


    for(new i = 0;i<MAX_BIZ;i++)
    {
    if(BizzInfo[i][pBizOwned] == 1)
    {
    new bizstring[450];
    format(bizstring , sizeof(bizstring),"BizName:\n%s\nBesitzer: %s\n2Besitzer: %s",BizzInfo[i][pBizName],BizzInfo[i][pBizOwner],BizzInfo[i][pBizCoOwner]);
    Create3DTextLabel(bizstring,0x008080FF,BizzInfo[i][pBizPosX], BizzInfo[i][pBizPosY], BizzInfo[i][pBizPosZ],40.0,0);
    CreatePickup(1273, 2, BizzInfo[i][pBizPosX], BizzInfo[i][pBizPosY], BizzInfo[i][pBizPosZ], -1);
    i++;
    }
    if(BizzInfo[i][pBizOwned] == 0)
    {
    new bizstring[450];
    format(bizstring , sizeof(bizstring),"BizName:\n%s\nBesitzer: %s\nPreis: %d",BizzInfo[i][pBizName],BizzInfo[i][pBizOwner],BizzInfo[i][pBizPreis]);
    Create3DTextLabel(bizstring,0x008080FF,BizzInfo[i][pBizPosX], BizzInfo[i][pBizPosY], BizzInfo[i][pBizPosZ],40.0,0);
    CreatePickup(1272, 2, BizzInfo[i][pBizPosX], BizzInfo[i][pBizPosY], BizzInfo[i][pBizPosZ], -1);
    i++;
    }
    }


    stock LoadBusiness()
    {
    new i,str[512];
    mysql_query("SELECT * FROM `business`");
    mysql_store_result();
    while(mysql_fetch_row(str))
    {
    sscanf(str, "e<p<|>ds[128]s[128]s[128]fffdd>",BizzInfo[i][pBizID],BizzInfo[i][pBizOwner],BizzInfo[i][pBizCoOwner],BizzInfo[i][pBizName],BizzInfo[i][pBizPosX],BizzInfo[i][pBizPosY],BizzInfo[i][pBizPosZ],BizzInfo[i][pBizOwned],BizzInfo[i][pBizPreis]);
    printf("DEBUG: %s",str);
    i++;
    }
    mysql_free_result();
    return true;
    }


    Bitte um Hilfe ;(


    Mit Freundlichen Grüßen


    TyrsHammer

    Dann ist ja gut mal schauen ^^


    Antworte :


    Du Lässt es Nicht Speicher oder Laden ^^





    stock Spielerladen(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format (Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    SetPlayerScore(playerid,dini_Int(Spielerdatei,"Level"));
    GivePlayerMoney(playerid,dini_Int(Spielerdatei,"Geld"));
    return 1;
    }


    stock SpielerSpeichern(playerid)
    {
    new Spielerdatei[64];
    new name[MAX_PLAYER_NAME];
    GetPlayerName(playerid,name,sizeof(name));
    format (Spielerdatei,sizeof(Spielerdatei),"/Accounts/%s.txt",name);
    dini_IntSet(Spielerdatei,"Level",GetPlayerScore(playerid));
    dini_IntSet(Spielerdatei,"Geld",GetPlayerMoney(playerid));
    return 1;
    }


    Ich kan ihr es jetzt so nicht sagen ich brauch dein Enum wo die ganzen sachen gespeichert werden



    enum PlyerInfo (oder so )
    {
    Geld,
    level,
    adminlevel,
    }


    Edit:// Atwort Hinzugeügt