- 0
вместо целого числа миллионы. Спидометр
Question
Лучший ответ
@Antoxa39, %f используется при передаче вещественных чисел. Для передачи целочисленных, коим и является ID игрока (playerid), используют %d или %i. Также обращаю ваше внимание на то, что интервал для вызова таймера задается в миллисекундах. Боюсь, каждую миллисекунду вызывать таймер для расчета скорости - перебор. Поменяю это значение на половину секунды (1000 миллисекунд = 1 секунда).
SetTimerEx("getspeed", 0.5 * 1000, true, "%i", playerid);
Следующая проблема состоит в том, что вы имеете вещественное число, но выводите его как целое. Следует либо округлить соответствующей функцией, либо все же выводить вещественное число. Но, коль уж вы ожидаете увидеть целочисленное, выполним округление.
public getspeed(playerid) {
new Float:cord[3];
GetVehicleVelocity(GetPlayerVehicleID(playerid),cord[0], cord[1], cord[2]);
new Float:veloc = floatsqroot(floatpower(floatabs(cord[0]), 2.0) + floatpower(floatabs(cord[1]), 2.5) + floatpower(floatabs(cord[2]), 2.0)) * 181.3;
new str[25];
format(str,sizeof(str),"KM/H %d",floatround(veloc));
PlayerTextDrawSetString(playerid,speed[playerid],str);
return 1;
}
Сходу больше не вижу проблем.
This topic is now closed to further replies.
-
Recently Browsing 0 members
No registered users viewing this page.
-
Similar Content
-
By FriendlyRP124
[11:49:51 11/08/25] [ERROR] mysql_tquery - invalid connection handle (id: 0) [11:49:51 11/08/25] [WARNING] CMySQLHandle::Create - connection already exists [11:49:51 11/08/25] [ERROR] CMySQLQuery::Execute[load_config_server] - (error #1146) Table 'gs317228.cfg_in_server' doesn't exist (Query: "SELECT * FROM `cfg_in_server`") [11:49:51 11/08/25] [ERROR] CMySQLQuery::Execute[] - (error #1054) Unknown column 'GiveMoneyDay' in 'where clause' (Query: "UPDATE `accounts` SET `GiveMoneyDay` = '0' WHERE `GiveMoneyDay` > '0'") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('82') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('83') (Query: "SELECT * FROM `bizz` ORDER BY `bizz`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-2') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_int - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") [11:49:51 11/08/25] [ERROR] cache_get_field_content_float - invalid datatype [11:49:51 11/08/25] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('-1') (Query: "SELECT * FROM `house` ORDER BY `house`.`id` ASC ") Ссылка на БД https://disk.yandex.ru/d/YBm6ozFQlpgtCQ
-
Antoxa39 Dance 80-90, mmm Nice) 22
вот код паблика
вот OnPlayerStateChange(function)
if(newstate == PLAYER_STATE_DRIVER)
{
PlayerTextDrawShow(playerid,speed[playerid]);
SetTimerEx("getspeed", 1, true, "%f", playerid);
}
if(newstate == PLAYER_STATE_ONFOOT)
{
PlayerTextDrawHide(playerid,speed[playerid]);
}
тд:
new PlayerText:speed[MAX_PLAYERS];
Share this post
Link to post