09.08.2014, 14:30
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:
Database:
Whats wrong?
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; }
Quote:
mysql_query(conn,"CREATE TABLE IF NOT EXISTS textlabel(t_id_ INT(20),t_text VARCHAR(22 ![]() |