stocks für mysql_SetIntHaus, sowie mysql_SetFloatHaus und Serverlog posten bitte.
Umgeschrieben auf ohne Haus!
stock mysql_SetInt(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` = '%s'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}
stock mysql_SetString(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` = '%s'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}
stock mysql_SetFloat(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` = '%s'", Table, Field, To, Where, Where2);
mysql_query(query);
return true;
}
LOG:
] CMySQLHandler::StoreResult() - Result was stored.
[17:06:48] >> mysql_fetch_int( Connection handle: 1 )
[17:06:48] CMySQLHandler::FetchRow() - Return: 6
[17:06:48] >> mysql_free_result( Connection handle: 1 )
[17:06:48] CMySQLHandler::FreeResult() - Result was successfully free'd.
[17:06:48] >> mysql_query( Connection handle: 1 )
[17:06:48] CMySQLHandler::Query(INSERT INTO `accounts` (`HausID`, `X-Pos`, `Y-Pos`, `Z-Pos`, `Preis`, `Interior`, `MaxMieter``Mieter``Besitzer`) VALUES ('1', '-2009.700195','128.389480','27.539062','1','1','1','0','keiner')) - An error has occured. (Error ID: 1136, Column count doesn't match value count at row 1)
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(houses); - Escaped 6 characters to houses.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(InteriorID); - Escaped 10 characters to InteriorID.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(HausID); - Escaped 6 characters to HausID.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(Haus1); - Escaped 5 characters to Haus1.
[17:06:48] >> mysql_query( Connection handle: 1 )
[17:06:48] CMySQLHandler::Query(UPDATE `houses` SET `InteriorID` = '1' WHERE `HausID` = 'Haus1') - Successfully executed.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(houses); - Escaped 6 characters to houses.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(InteriorFloat:x); - Escaped 15 characters to InteriorFloat:x.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(HausID); - Escaped 6 characters to HausID.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(Haus1); - Escaped 5 characters to Haus1.
[17:06:48] >> mysql_query( Connection handle: 1 )
[17:06:48] CMySQLHandler::Query(UPDATE `houses` SET `InteriorFloat:x` = '271.884979' WHERE `HausID` = 'Haus1') - Successfully executed.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(houses); - Escaped 6 characters to houses.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(InteriorFloat:y); - Escaped 15 characters to InteriorFloat:y.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(HausID); - Escaped 6 characters to HausID.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(Haus1); - Escaped 5 characters to Haus1.
[17:06:48] >> mysql_query( Connection handle: 1 )
[17:06:48] CMySQLHandler::Query(UPDATE `houses` SET `InteriorFloat:y` = '306.631988' WHERE `HausID` = 'Haus1') - Successfully executed.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(houses); - Escaped 6 characters to houses.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(InteriorFloat:z); - Escaped 15 characters to InteriorFloat:z.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(HausID); - Escaped 6 characters to HausID.
[17:06:48] >> mysql_real_escape_string( Connection handle: 1 )
[17:06:48] CMySQLHandler::EscapeString(Haus1); - Escaped 5 characters to Haus1.
[17:06:48] >> mysql_query( Connection handle: 1 )
[17:06:48] CMySQLHandler::Query(UPDATE `houses` SET `InteriorFloat:z` = '999.148437' WHERE `HausID` = 'Haus1') - Successfully executed.