22.01.2015, 11:56 
	
	
	
		Up, please.
	
	
	
	
|  | 
|  | 
LoadDroppedItems()
{
	new query[1024];
	mysql_format(MySQL, query, sizeof(query), "SELECT * FROM `items` WHERE `owner` = '-1';");
	mysql_tquery(MySQL, query, "OnDroppedItemsLoad", "");
	return 1;
}
public OnDroppedItemsLoad()
{
	print("\n\n---------------------------");
	new rows = cache_num_rows();
	printf("num of rows = %d", rows);
	
	for(new d; d < rows; d++)
	{
		static id, model, amount, Float:x, Float:y, Float:z;
		id = cache_get_field_content_int(d, "id", MySQL);
		model = cache_get_field_content_int(d, "model", MySQL);
		amount = cache_get_field_content_int(d, "amount", MySQL);
		x = cache_get_field_content_float(d, "coord_x", MySQL);
		y = cache_get_field_content_float(d, "coord_y", MySQL);
		z = cache_get_field_content_float(d, "coord_z", MySQL);		
		CreateDroppedItem(id, model, amount, x, y, z);
		
		#if defined DEBUGMSG
		new string[128];
		format(string, sizeof(string), "Loop %d retrieved item_id = %d and item_model = %d",d, id, model);
		print(string);
		#endif
	}
	print("---------------------------\n\n");
	return 1;
}
[16:10:08] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('1')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_int - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
[16:10:09] [ERROR] CMySQLResult::GetRowDataByName() - invalid row index ('2')
[16:10:09] [ERROR] cache_get_field_content_float - invalid datatype
mysql_format(MySQLConnect, query, 512, "SELECT FROM_UNIXTIME(`Timestamp`, '%%d-%%m-%%Y а %%H:%%I:%%S') AS Timestamp, Admin, Raison FROM `warns` WHERE SQLid = %d", PlayerInfo[playerid][ID]);
mysql_tquery(MySQLConnect, query, "Show", "ii", playerid, playerid);
| Never put quotes around numbers (it should be -1, not '-1'). Does CreateDroppedItem do anything with the MySQL plugin? Should you not put the connection handle in cache_num_rows? Such as cache_num_rows(MySQL). Try using cache_get_data instead of cache_num_rows. | 
new query[512]; mysql_format(MySQL, query, sizeof(query), "UPDATE `items` SET `owner` = -1, `coord_x` = '%f', `coord_y` = '%f', `coord_z` = '%f' WHERE `id` = %d;",x, y, z, itemid); mysql_tquery(MySQL, query, "", "");
 
	| Not quite sure if it's allowed to ask questions not related to this plugin here. | 
| Its not only questions, its not scripting help only, it can be maybe an bug report idk... | 
[22:13:08] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Numero", connection: 1
[22:13:08] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Numero")
[22:13:08] [ERROR] cache_get_field_content_int - invalid datatype
new Numero = cache_get_field_content_int(i, "Numero");
`Numero` bigint(20) NOT NULL,
| Fixed. Other: I have this error: Код: [22:13:08] [DEBUG] cache_get_field_content_int - row: 0, field_name: "Numero", connection: 1
[22:13:08] [WARNING] CMySQLResult::GetRowDataByName - field not found ("Numero")
[22:13:08] [ERROR] cache_get_field_content_int - invalid datatypepawn Код: 
 pawn Код: 
 | 
| Please can someone fix the links or re-upload them, I need windows and then Linux ones urgently |