Create3dtext error
#1

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 
1MAX_3DTEXTLABELSi++)
    {
        
format(querysizeof(query), "SELECT * FROM `3dtextlabel` WHERE `id` = '%d'"i);
        
mysql_query(sqldbquery);
        
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"); floatstr(data);
                
mysql_fetch_field_row(data"y"); floatstr(data);
                
mysql_fetch_field_row(data"z"); floatstr(data);
                
mysql_fetch_field_row(data"tavolsag"); tavolsag floatstr(data);
                
mysql_fetch_field_row(data"wv"); wv strval(data);
                
Create3DTextLabel(text, -1xyztavolsagwv1);
                   
total++;
            }
        }
        
mysql_free_result();
    }
    
printf("%i textlabel betцltve!"total);
    return 
1;

Reply
#2

Why are you saving Draw Distance? Try set the draw distance option to 5 and see what happens. Take Tavolsag out for now just comment it out then try
Reply
#3

in float
in mysql:
PHP код:
text                             x          y         z      distance  interior
Red
-River-Megyei-Sheriff-Hivatal -39.3426 1182.89 22.587     40           0 
Reply
#4

ok, i set this: Create3DTextLabel(text, -1, x, y, z, 40, wv, 1);
but its create only one 3dtext.. the first is created and the last 12 is not
Reply
#5

anyone?
Reply
#6

bump
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)