//close

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
  • Hallo,
    bei der R7 heißt diese Funktion "mysql_function_query" und hat noch zusätzliche Parameter.
    Ich empfehle dir dazu mein Tutorial in meiner Signatur: [ SCRIPTING ] MySQL R7 - Cachefunktionen + Threaded Querys



    MfG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • habe ich geändert aber jetzt habe ich hier fehler
    mysql_function_query(query);


    wie muss das aussehen ?

  • Wenn du dir nicht Zeit nimmst, lass es .

    Zitat


    Hallo,
    bei der R7 heißt diese Funktion "mysql_function_query" und hat noch zusätzliche Parameter.
    Ich empfehle dir dazu mein Tutorial in meiner Signatur: [ SCRIPTING ] MySQL R7 - Cachefunktionen + Threaded Querys

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • Man es geht nich es ist nicht zu verstehen !!!!!!!!!!!!!



    GetVehicleHealth(CarInfo[playerid][i][Auto], CarInfo[playerid][i][Leben]);
    format(sql,300, "UPDATE `playercars` SET `X` = '%f', `Y` = '%f', `Z` = '%f', `R` = '%f', `Farbe1` = '%d', `Farbe2` = '%d', `Lock` = '%d', `Zweitbesitzer` = '%s',`Tank` = '%d'",CarInfo[playerid][i][pcX],CarInfo[playerid][i][pcY],CarInfo[playerid][i][pcZ],CarInfo[playerid][i][pcR],CarInfo[playerid][i][Color1],CarInfo[playerid][i][Color2],CarInfo[playerid][i][Lock],CarInfo[playerid][i][Zweitbesitzer],CarInfo[playerid][i][Tank]);
    format(sql2,600, "%s ,`Km` = '%f', `Leben` = '%f', `Schild` = '%s', `Nitro` = '%d', `Hydraulic` = '%d', `Reifen` = '%d', `Auspuff` = '%d', `SideL` = '%d',`SideR` = '%d'",sql,CarInfo[playerid][i][Km],CarInfo[playerid][i][Leben],CarInfo[playerid][i][NummerSchild],CarInfo[playerid][i][Nitro]
    ,CarInfo[playerid][i][Hydraulic],CarInfo[playerid][i][Reifen],CarInfo[playerid][i][Auspuff],CarInfo[playerid][i][SideL],CarInfo[playerid][i][SideR]);
    format(sql3,900, "%s , `FB` = '%d', `RB` = '%d', `Spoiler` = '%d', `Roof` = '%d', `Hood` = '%d', `Vents` = '%d', `Lampen` = '%d', `PaintJob` = '%d', `Neon` = '%d', `Neonid` = '%d' WHERE `ID` = '%d' AND `Owner` = '%s'",sql2,CarInfo[playerid][i][FB],CarInfo[playerid][i][RB],CarInfo[playerid][i][Spoiler]
    ,CarInfo[playerid][i][Roof],CarInfo[playerid][i][Hood],CarInfo[playerid][i][Vents],CarInfo[playerid][i][Lampen],CarInfo[playerid][i][PaintJob],CarInfo[playerid][i][Neon],CarInfo[playerid][i][Neonid],CarInfo[playerid][i][ID],CarInfo[playerid][i][Owner]);
    mysql_function_query(sql3);//so hab ich es
    hier der versuch
    mysql_function_query(connectionHandle,query[sql3],bool:cache,callback[],format[],{Float,_}:...)//wtf ist das gemeint wie soll man das verstehen ey!


  • Allein schon der Query ist fehlerhaft. Wenn du die 3 "Querys" zu "einem haben willst musst du sie mit strcat verknüpfen.
    Auführen, tust du das dann so:
    mysql_function_query(connectionHandleVariable,DeinSQLString,false,"","");
    Und glaub mir, es ist verständlich erklärt, jedoch solltest du dir Zeit lassen & dir ALLES durchlesen und nicht einfach so schnell wie möglich zu versuchen ...


    MfG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • mysql_function_query


    in dem man lernt einen Syntax zu lesen.
    mysql_function_query(connectionHandle,query[sql3],bool:cache,callback[],format[],{Float,_}:...)


    mysql_function_query(verbindung, query, cache:ja/nein, callback( Grund Threadet querys), die parameter des callbacks,die Werte wo mitgegeben werden sollen);


    also als beispiel:


    new MySql = mysql_connect(...);
    mysql_function_query(MySQL,"SELECT * FROM `table` WHERE `Spalte` = 'Eintrag'",true,"LoadAccount","i",playerid);


    forward LoadAccount(playerid);
    public LoadAccount(playerid){
    ....
    }


    Ich brauch aber kein callback oder parameter ! Kein Problem.
    mysql_function_query(MySQL,"SELECT * FROM `table` WHERE `Spalte` = 'Eintrag'",true,"","");


    brauch ich dieses true überhaupt.
    Ja das braucht man , wenn man die cache funktionen benutzt sonst kann man dies ausschalten oder an lassen
    es macht kein unterschied.

  • Man kanns auch ohne
    MySql = ...
    machen
    einfach
    mysql_function_query(1,"SELECT * FROM `table` WHERE `Spalte` = 'Eintrag'",true,"","");


    Wenn man nur eine MySQL Verbindung benutzt, dann ja ...


    MfG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • do.de - Domain-Offensive - Domains für alle und zu super Preisen

  • ja ich verwende mysql nur für autohaus sohnst nix


    Dann kannst du 1 verwenden, aber wo ist das Problem ?


    MfG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • alo wen ich das richtig verstehe
    meint ihr es so ?



    mysql_function_query(1, "UPDATE `playercars` SET `X` = '%f', `Y` = '%f', `Z` = '%f', `R` = '%f', `Farbe1` = '%d', `Farbe2` = '%d', `Lock` = '%d', `Zweitbesitzer` = '%s',`Tank` = '%d'",CarInfo[playerid][i][pcX],CarInfo[playerid][i][pcY],CarInfo[playerid][i][pcZ],CarInfo[playerid][i][pcR],CarInfo[playerid][i][Color1],CarInfo[playerid][i][Color2],CarInfo[playerid][i][Lock],CarInfo[playerid][i][Zweitbesitzer],CarInfo[playerid][i][Tank]);



  • Nein so meinen wir das nicht ..... Schau dir bitte nochmal alles in Ruhe an ...


    MfG

    Main: CPU: Intel Core i5-4440 @ 3,10 GHz | CPU-Cooling: Matterhorn -PURE- | RAM: 16GB Crucial Ballistix Sport DDR3-1600 DIMM CL9-9-9-24 |
    Motherboard: ASRock B85M Pro4 | GPU: Sapphire Radeon R9 390X Nitro 8GB GDDR5 |

    SSD: Samsung SSD 840 Evo 500GB | Power Supply: 550 Watt Corsair CS Series Modular 80+ Gold | Case: beQuiet! Silent Base 800


    As I walk through the valley of the shadow of death
    I take a look at my life and realize there's nothin' left.

  • ja wen ich das so mache

    mysql_function_query(connectionHandleVariable,sql3,false,"","");
    sagt er


    Zitat

    undefined symbol "connectionHandleVariable"


  • Mach da die 1 hin!
    und benutz format(...); dann
    mysql_function_query(1, deinstring, false, "", "");


    es klapt :thumbup: danke dir jetzt werden die errors weniger