Dynamic labels refuses to load
#1

Hello, got a problem with dynamic labels that I made. They refuse to load, I can create them just fine.
They save in the database fine, but wont load.

This feature is called on OnGameModeInit:

Code:
AddLabelsFromFile();
And this is the 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)
   	{
	    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;
}
Any help is appreciated.

Thanks
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)