Dynamic textdraw dont load
#1

Hello, got a problem with my dynamic textdraws not loading.
I am using BlueG r33 and they dont show up. they are in the database but dont show up.
No errors in mysql.log either.

This is the loading codes:

Код:
stock LoadTextLabels()
{
    for(new i,j = MAX_TEXT; i != j; i++)
    {
            mysql_query(conn,"SELECT * FROM textlabel");
			cache_get_field_content(0,"t_text",tInfo[i][t_string],conn);
            cache_get_field_content(0,"t_color_",tInfo[i][t_color],conn);
            tInfo[i][t_postion][0] = cache_get_field_content_float(0,"t_x",conn);
            tInfo[i][t_postion][1] = cache_get_field_content_float(0,"t_y",conn);
            tInfo[i][t_postion][2] = cache_get_field_content_float(0,"t_z",conn);
            tInfo[i][t_id] = cache_get_field_content_int(0,"t_id_",conn);
    }
    SetTimer("_loadTextAllTextLabel",2000,false);
    return 1;
}

forward _loadTextAllTextLabel();
public _loadTextAllTextLabel()
{
        for(new i,j = MAX_TEXT; i != j; i++)
        {
        	tInfo[i][t_label] = Create3DTextLabel(tInfo[i][t_string],0xED1414FF,tInfo[i][t_postion][0],tInfo[i][t_postion][1],tInfo[i][t_postion][2],40.0,0,0);
                
        }
        return 1;
}
Database:

Quote:

mysql_query(conn,"CREATE TABLE IF NOT EXISTS textlabel(t_id_ INT(20),t_text VARCHAR(22,t_color_ VARCHAR(23),t_x float(20),t_y float(20),t_z float(20))");

Whats wrong?
Reply


Messages In This Thread
Dynamic textdraw dont load - by BizzyD - 09.08.2014, 14:30
Re: Dynamic textdraw dont load - by BizzyD - 09.08.2014, 14:53
Re: Dynamic textdraw dont load - by BizzyD - 09.08.2014, 15:18
Respuesta: Dynamic textdraw dont load - by Xabi - 09.08.2014, 15:31
Re: Dynamic textdraw dont load - by BizzyD - 09.08.2014, 16:32
Re: Dynamic textdraw dont load - by SKAzini - 09.08.2014, 16:33
Re: Dynamic textdraw dont load - by BizzyD - 09.08.2014, 16:36
Re: Dynamic textdraw dont load - by BizzyD - 09.08.2014, 19:57

Forum Jump:


Users browsing this thread: 1 Guest(s)