SA-MP Forums Archive
Create3dtext error - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Create3dtext error (/showthread.php?tid=513588)



Create3dtext error - n00el - 17.05.2014

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;




Re: Create3dtext error - Ciandlah - 17.05.2014

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


Re: Create3dtext error - n00el - 17.05.2014

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



Re: Create3dtext error - n00el - 17.05.2014

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


Re: Create3dtext error - n00el - 17.05.2014

anyone?


Re: Create3dtext error - n00el - 17.05.2014

bump