17.05.2014, 06:37
Hi. I have this stock.. The read is ok, i create a debug printf and its workint. but i am join the server and dont found any 3dtext.. why?
PHP код:
stock Load3DTextLabels()
{
new total;
for (new i = 1; i < MAX_3DTEXTLABELS; i++)
{
format(query, sizeof(query), "SELECT * FROM `3dtextlabel` WHERE `id` = '%d'", i);
mysql_query(sqldb, query);
mysql_store_result();
if (mysql_num_rows())
{
while (mysql_retrieve_row())
{
new
data[128],
text[128],
id,
Float:x,
Float:y,
Float:z,
Float:tavolsag,
wv;
mysql_fetch_field_row(data, "id"); id = strval(data);
mysql_fetch_field_row(data, "text"); text = data;
mysql_fetch_field_row(data, "x"); x = floatstr(data);
mysql_fetch_field_row(data, "y"); y = floatstr(data);
mysql_fetch_field_row(data, "z"); z = floatstr(data);
mysql_fetch_field_row(data, "tavolsag"); tavolsag = floatstr(data);
mysql_fetch_field_row(data, "wv"); wv = strval(data);
Create3DTextLabel(text, -1, x, y, z, tavolsag, wv, 1);
total++;
}
}
mysql_free_result();
}
printf("%i textlabel betцltve!", total);
return 1;
}