TextDrawSetString set only half of string.
#1

PHP код:
CMD:cmd(playeridparams[])
{
    
//TextDrawShowForPlayer(playerid, BOX1);
    
new string[256];
    new 
File:pos=fopen("something.txt"io_readwrite);
    while(
fread(posstring))
    {
    
format(stringsizeof(string), "%s"string);
    
SendClientMessage(playerid,0,string);
    
TextDrawSetString(BOX1string);
    
TextDrawShowForPlayer(playeridBOX1);
    }
    
fclose(pos);
    return 
1;

You can see, for testing i make this code to send client message and show him a textdraw which is all correct created, but ingame SendClientMessage is okay (show whole line from file) but in box of textdraw show only 2-3 words.

If anyone have solution for this, reply please.
Reply


Messages In This Thread
TextDrawSetString set only half of string. - by DiNorscio - 24.06.2014, 18:04
Re: TextDrawSetString set only half of string. - by Threshold - 25.06.2014, 04:08

Forum Jump:


Users browsing this thread: 1 Guest(s)