Labels
#4

Quote:
Originally Posted by RuNBoY
Посмотреть сообщение
This is the text that is in the Texts.txt : Create3DTextLabel("test!",0x3A47DEFF,2637.90, 1129.06, 11.17,30.0,1);

AND this is how i save them

new File:file,str[256];
file=fopen("Texts.txt",io_append);
new Float,Float:y,Float:z;
GetPlayerPos(playerid,x,y,z);
Create3DTextLabel(inputtext,COLOR_RED,x,y,z,30.0,0 ,1);
format(str, 256, "\r\nCreate3DTextLabel(\"%s\",0xFF0000AA,%.2f, %.2f, %.2f,30.0,1);" ,inputtext, x, y, z);
fwrite(file,str);
fwrite(file,"\r\n");
fclose(file);
First, i advise you to use a files include, like dini2 is best imo.
And, that's not how to save labels, it's should be using enums like
PHP код:
enum L_DATA
{
        
ID,
    
Text[256],
    
Color,
    
Float:POSX,
    
Float:POSY,
     
Float:POSZ,
     
Float:Distance,
     
World
}
new 
Text3D:Label[MAX_LABELS][L_DATA]; 
Reply


Messages In This Thread
Labels - by RuNBoY - 23.08.2016, 15:17
Re: Labels - by Shinja - 23.08.2016, 15:25
Re: Labels - by RuNBoY - 23.08.2016, 15:28
Re: Labels - by Shinja - 23.08.2016, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)