case 1:{mysql_SetIntHaus("houses", "InteriorID", 1, "HausID",i);mysql_SetFloatHaus("houses", "InteriorFloat:x", 271.884979, "HausID",i);mysql_SetFloatHaus("houses", "InteriorFloat:y", 306.631988, "HausID", i);mysql_SetFloatHaus("houses", "InteriorFloat:z", 999.148437, "HausID",i);}//Katie Room
Fehler Argument 5 in dieser Zeile.
Nun das stock:
stock mysql_SetIntHaus(Table[], Field[], To, Where[], Where2[])
{
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(Where2, Where2);
format(query, 128, "UPDATE `%s` SET `%s` = '%d' WHERE `%s` = '%d'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}
stock mysql_SetStringHaus(Table[], Field[], To[], Where[], Where2[])
{
new query[128];
mysql_real_escape_string(Table, Table);
mysql_real_escape_string(Field, Field);
mysql_real_escape_string(To, To);
mysql_real_escape_string(Where, Where);
mysql_real_escape_string(Where2, Where2);
format(query, 128, "UPDATE `%s` SET `%s` = '%s' WHERE `%s` = '%d'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}
stock mysql_SetFloatHaus(Table[], Field[], Float:To, Where[], Where2[])
{
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(Where2, Where2);
format(query, 128, "UPDATE `%s` SET `%s` = '%f' WHERE `%s` = '%d'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}