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;
}