Hilfe bei Errrors.

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
  • Guten Tag,
    ich habe folgende Errors.


    Error Zeilen:
    mysql_fetch_field("wins",val);
    mysql_fetch_field("champ",Titel[TitelName]);
    mysql_fetch_field("loses",val);


    • error 035: argument type mismatch (argument 1)


    public LoadBoxer()
    {
    new query[128],val[128];
    format(query, sizeof(query), "SELECT * FROM `boxstats`");
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("wins",val);
    Titel[TitelWins] = strval(val);

    mysql_fetch_field("champ",Titel[TitelName]);


    mysql_fetch_field("loses",val);
    Titel[TitelLoses] = strval(val);
    }
    mysql_free_result();
    print("Boxstatistiken geladen!");
    return 1;
    }


    Error Zeilen:


    mysql_fetch_field("jackpot",val);
    mysql_fetch_field("tax",val);
    mysql_fetch_field("taxvalue",val);
    mysql_fetch_field("security",val);
    mysql_fetch_field("verweigerarg",val);
    mysql_fetch_field("drugammo",val);
    mysql_fetch_field("drugsave",val);
    mysql_fetch_field("pizzabake",val);


    • error 035: argument type mismatch (argument 1)


    public LoadStuff()
    {
    new query[128],val[128];
    format(query, sizeof(query), "SELECT * FROM `stuff`");
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("jackpot",val);
    Jackpot = strval(val);


    mysql_fetch_field("tax",val);
    Tax = strval(val);

    mysql_fetch_field("taxvalue",val);
    TaxValue = strval(val);

    mysql_fetch_field("security",val);
    Security = strval(val);

    mysql_fetch_field("verweigerarg",val);
    verweigerarg = strval(val);

    mysql_fetch_field("drugammo",val);
    drugsys[DrugAmmount] = strval(val);

    mysql_fetch_field("drugsave",val);
    drugsys[DrugsSaved] = strval(val);

    mysql_fetch_field("pizzabake",val);
    pizzasys[PizzaGebacken] = strval(val);
    }
    mysql_free_result();
    print("Servereinstellungen geladen!");
    return 1;
    }


    Error Zeilen:


    mysql_fetch_field("hcreated",val);
    mysql_fetch_field("hentrancex",val);
    mysql_fetch_field("hentrancey",val);
    mysql_fetch_field("hentrancez",val);
    mysql_fetch_field("hexitx",val);
    mysql_fetch_field("hexity",val);
    mysql_fetch_field("hexitz",val);
    mysql_fetch_field("hhealthx",val);
    mysql_fetch_field("hhealthy",val);
    mysql_fetch_field("hhealthz",val);
    mysql_fetch_field("harmourx",val);
    mysql_fetch_field("harmoury",val);
    mysql_fetch_field("harmourz",val);
    mysql_fetch_field("howner",HouseInfo[idx][hOwner]);
    mysql_fetch_field("hdiscription",HouseInfo[idx][hDiscription]);


    • error 035: argument type mismatch (argument 1)


    public LoadProperty()
    {
    new val[128],query[256];
    for(new idx=0; idx<sizeof(HouseInfo); idx++)
    {
    format(query, sizeof(query), "SELECT * FROM `houses` WHERE `houseid`='%i'", idx);
    mysql_query(query);
    mysql_store_result();
    if(mysql_num_rows())
    {
    mysql_fetch_field("hcreated",val);
    HouseInfo[idx][hCreated] = strval(val);


    mysql_fetch_field("hentrancex",val);
    HouseInfo[idx][hEntrancex] = floatstr(val);


    mysql_fetch_field("hentrancey",val);
    HouseInfo[idx][hEntrancey] = floatstr(val);


    mysql_fetch_field("hentrancez",val);
    HouseInfo[idx][hEntrancez] = floatstr(val);


    mysql_fetch_field("hexitx",val);
    HouseInfo[idx][hExitx] = floatstr(val);


    mysql_fetch_field("hexity",val);
    HouseInfo[idx][hExity] = floatstr(val);


    mysql_fetch_field("hexitz",val);
    HouseInfo[idx][hExitz] = floatstr(val);


    mysql_fetch_field("hhealthx",val);
    HouseInfo[idx][hHealthx] = strval(val);


    mysql_fetch_field("hhealthy",val);
    HouseInfo[idx][hHealthy] = strval(val);


    mysql_fetch_field("hhealthz",val);
    HouseInfo[idx][hHealthz] = strval(val);


    mysql_fetch_field("harmourx",val);
    HouseInfo[idx][hArmourx] = strval(val);


    mysql_fetch_field("harmoury",val);
    HouseInfo[idx][hArmoury] = strval(val);


    mysql_fetch_field("harmourz",val);
    HouseInfo[idx][hArmourz] = strval(val);


    mysql_fetch_field("howner",HouseInfo[idx][hOwner]);


    mysql_fetch_field("hdiscription",HouseInfo[idx][hDiscription]);


    mysql_fetch_field("hvalue",val);
    HouseInfo[idx][hValue] = strval(val);


    mysql_fetch_field("hhel",val);
    HouseInfo[idx][hHel] = strval(val);


    mysql_fetch_field("harm",val);
    HouseInfo[idx][hArm] = strval(val);


    mysql_fetch_field("hint",val);
    HouseInfo[idx][hInt] = strval(val);


    mysql_fetch_field("hlock",val);
    HouseInfo[idx][hLock] = strval(val);


    mysql_fetch_field("howned",val);
    HouseInfo[idx][hOwned] = strval(val);


    mysql_fetch_field("hrooms",val);
    HouseInfo[idx][hRooms] = strval(val);


    mysql_fetch_field("hrent",val);
    HouseInfo[idx][hRent] = strval(val);


    mysql_fetch_field("hrentabil",val);
    HouseInfo[idx][hRentabil] = strval(val);


    mysql_fetch_field("hdate",val);
    HouseInfo[idx][hDate] = strval(val);


    mysql_fetch_field("hlevel",val);
    HouseInfo[idx][hLevel] = strval(val);


    mysql_fetch_field("hmuell",val);
    HouseInfo[idx][hMuell] = strval(val);
    }
    mysql_free_result();
    }
    print("Häuser geladen!");
    return 1;
    }

  • Bitte den Titel aussagekräftig nacheditieren. Als Beispiel:

    • error 035: argument type mismatch (mysql)
    • mysql_fetch_field: argument type mismatch


    Mein CS:GO Server: 62.75.168.39:27016


    Ich bin so hungrig, dass ich vor lauter Durst nicht weiß, was ich rauchen soll - so müde bin ich!
    Freedom is just another word for 'Nothing left to lose'