Tag zusammen,
folgendes Problem:
Ich versuche einen 3DTextLabel zu erstellen, welcher seine Informationen aus einer Datenbank erhält.
Nur leider wird mir der obige Error angzeigt. Hoffe das mir jemand helfen kann.
C:\Users\Andreas\Desktop\TP-SA\pawno\include\Loader2.inc(249) : error 035: argument type mismatch (argument 4)
C:\Users\Andreas\Desktop\TP-SA\pawno\include\Loader2.inc(249) : error 035: argument type mismatch (argument 4)
C:\Users\Andreas\Desktop\TP-SA\pawno\include\Loader2.inc(250) : error 035: argument type mismatch (argument 4)
LadeHaeuser()
{
for(new i=0;i<MAX_HAUESER;i++)
{
if(mysql_GetInt("house","Mietbar","ID",i) == 1) format(FormatString,sizeof(FormatString),"HausID: %d\nBesitzer: %s\nMietpreis: %d",i,mysql_GetString("house","Besitzer","ID",i),mysql_GetInt("house","Mietpreis","ID",i)); //Zeile 249
else format(FormatString,sizeof(FormatString),"HausID: %d\nBesitzer: %s",i,mysql_GetString("house","Besitzer","ID",i)); //Zeile 250
Create3DTextLabel(FormatString,GELB,HausInfo[i][0],HausInfo[i][1],HausInfo[i][2],50.0,-1,-1); //Zeile 251
}
return 1;
}
stock mysql_GetString(Table[], Field[], Where[], Is[])
{
new query[128], Get[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();
mysql_fetch_row(Get);
return Get;
}
stock mysql_GetInt(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 sqlint = mysql_fetch_int();
mysql_free_result();
return sqlint;
}