Dynamic labels refuses to load
#2

New stock:
Code:
stock AddLabelsFromFile()
{
	new
		LabelInfo[128],
		Float:LX,
		Float:LY,
		Float:LZ,
		lTotal;

    new Query[150];
	format(Query, sizeof(Query), "SELECT * FROM `labels`");
	new rows, fields;
	cache_get_data(rows, fields, conn);
   	if(rows)
   	{
        cache_get_field_content_float(0, "LabelX", conn);
        cache_get_field_content_float(0, "LabelY", conn);
        cache_get_field_content_float(0, "LabelZ", conn);
        new Field[128];
		cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field));
		CreateDynamic3DTextLabel(LabelInfo, RColors[random(sizeof(RColors))], LX, LY, LZ, 100.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 0, -1, -1, -1, TEXTLABELDISTANCE);
	    lTotal++;
	}
	mysql_free_result();
	printf("** %i\t<->\tLabels Loaded From\t<->\tMySQL\t\t   **", lTotal);
	return 1;
}
Still dont work

EDIT: Changed
Code:
cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field));
to:

Code:
cache_get_field_content(0, "LabelInfo", Field, conn, sizeof(Field), sizeof(Field), "%s", Field);
Gives me 3 warnings:

Code:
warning 202: number of arguments does not match definition x3
Reply


Messages In This Thread
Dynamic labels refuses to load - by BizzyD - 18.11.2013, 13:45
Re: Dynamic labels refuses to load - by BizzyD - 18.11.2013, 15:02
Respuesta: Dynamic labels refuses to load - by Jejox - 18.11.2013, 15:47
Re: Dynamic labels refuses to load - by Konstantinos - 18.11.2013, 16:19

Forum Jump:


Users browsing this thread: 1 Guest(s)