Beiträge von LMNTRIX

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


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


    [15.02.2012 13:26:11] password = "" (string)
    [15.02.2012 13:26:11] filterscripts = "" (string)
    [15.02.2012 13:26:11]
    [15.02.2012 13:26:11] Server Plugins
    [15.02.2012 13:26:11] --------------
    [15.02.2012 13:26:11] Loading plugin: 5_mysql.so
    [15.02.2012 13:26:11] SA:MP MySQL Plugin v2.1.1 Loaded.
    [15.02.2012 13:26:11] Loaded.
    [15.02.2012 13:26:11] Loading plugin: 2_sscanf.so
    [15.02.2012 13:26:11]


    [15.02.2012 13:26:11] ===============================


    [15.02.2012 13:26:11] sscanf plugin loaded.


    [15.02.2012 13:26:11] (c) 2009 Alex "Y_Less" Cole


    [15.02.2012 13:26:11] 0.3d-R2 500 Players "dnee"


    [15.02.2012 13:26:11] ===============================


    [15.02.2012 13:26:11] Loaded.
    [15.02.2012 13:26:11] [MySQL] Thread running. Threadsafe: Yes.
    [15.02.2012 13:26:11] Loading plugin: 8_streamer.so
    [15.02.2012 13:26:11]


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


    [15.02.2012 13:26:11] Loaded.
    [15.02.2012 13:26:11] Loaded 3 plugins.


    [15.02.2012 13:26:11]
    [15.02.2012 13:26:11] Filterscripts
    [15.02.2012 13:26:11] ---------------
    [15.02.2012 13:26:11] Loaded 0 filterscripts.


    [15.02.2012 13:26:11] Script[gamemodes/GD.amx]: Run time error 19: "File or function is not found"
    [15.02.2012 13:26:11] Number of vehicle models: 0


    aber er hat angenommen ! also mit Mysql ist er verbunden.Ich muss nur noch Tausend andere Zeilen erstellen.

    Ich habs soo




    und wenn ich id dazu mache kommt der Rote Text wie oben gesagt! im Script steht auch nichts mit ID.

    Wenn ich einhacken will kommt das !


    SQL
    SQL-Befehl:
    
    
    ALTER TABLE  `user` CHANGE  `ID`  `ID` INT( 11 ) NOT NULL AUTO_INCREMENT
    
    
    MySQL meldet: 
    
    
    #1075 - Incorrect table definition; there can be only one auto column and it must be defined as a key

    du meinst auto_increment einhacken :) oder? wenn ja bekomme ich das raus


    Hallo liebe Breadfisher,


    Ich habe da ein Problem und zwar will ich ein Gamemode mit mysql zum laufen bringen.
    Wie man mit Mysql Connected weiss ich ja doch leider habe ich noch nicht die erfahrung mit mysql die tabellen zu schreiben.


    Ich habe jetzt aus meinem Gamemode unter public OnPlayerLogin
    ein paar mysql formate kopiert.


    format(query,sizeof(query),"SELECT Level FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pLevel] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT AdminLevel FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pAdmin] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT DonateRank FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pDonateRank] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Registered FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pRegistered] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Tutorial FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pTut] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Sex FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pSex] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Age FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pAge] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Experience FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pExp] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Money FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pCash] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Gun1 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pGun1] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Gun2 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pGun2] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Gun3 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pGun3] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Gun4 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pGun4] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Ammo1 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pAmmo1] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Ammo2 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);
    mysql_store_result();
    PlayerInfo[playerid][pAmmo2] = mysql_fetch_int();
    mysql_free_result();
    format(query,sizeof(query),"SELECT Ammo3 FROM `user` WHERE Name = '%s' LIMIT 1",pName);
    mysql_query(query);


    Weiss einer wie ich das dann bei PhpMyAdmin schreiben soll mit den tabellen?




    Ich würde mich wirklich sehr freuen!man kann mir auch per Teamviewer helfen :) Pn melden.

    Ja wie willst du es den haben genauer bitte!


    Willst du das die Army Fahrzeuge durch einen Befehl ihre Panzerung bekommen.
    an einem bestimmen ort?



    Oder das sie immer Panzerung haben?


    :) infos bitte