28.07.2011, 19:42
I lose my nerves for a week and I can not fix: <. This is the code:
The problem is that loads the UID 1, 2, 3, 4, 5, and when it comes to break (the next record is UID 30) is suspended. But when the records one after another and there is no interruption to work. Please help, please!
Код:
new query[100],output[160],id_sql, count=0; format(query, sizeof(query), "SELECT * FROM `dm_vehicle` WHERE `owner` = '%d' AND `otype` = '2'",PlayerUID[playerid]); mysql_query(query); mysql_store_result(); while(mysql_fetch_row(output, "|")) { sscanf(output, "p<|>d",id_sql); sscanf(output, "p<|>ds[20]ddddfffdd",Veh[id_sql][UID],Item[id_sql][Name],Veh[id_sql][iModel],Veh[id_sql][iObject],Veh[id_sql][iOwn],Veh[id_sql][iOwntype],Veh[id_sql][iPo][0],Veh[id_sql][iPo][1],Veh[id_sql][iPo][2],Veh[id_sql][iInt],Veh[id_sql][iVW]); count++; } mysql_free_result(); return count;