Textdraw problem - Doesn't disappear?
#3

Well - It kinda worked to make the TD disappear.. But when I set the TD text - The TD doesn't appear anymore :/


PHP Code:
dcmd_setinfoboardstring(playeridparams[])
{
    new 
name[255], idstring256 ];
    if( 
sscanfparams"ds"idname))
    {
        if( 
PlayerInfo[playerid][pAdmin] >= 1339)
        {
            
SendClientMessageplayeridCOLOR_WHITE"USAGE: /setinfoboardstring [infoboardID] [Text]" );
        }
    }
    else
    {
        if( 
PlayerInfo[playerid][pAdmin] >= 1339)
        {
            
formatstringsizeof( string ), "InfoBoards/InfoBoard_%d.ini"id);
            if(!
dini_Exists( string) )
            {
                
SendClientMessageplayeridCOLOR_GREY"Invalid Info-Board ID!" );
                return 
1;
            }
            else
            {
                new 
IBI[512];
                
format(InfoBoardInfo[id][InfoBoardTDstring], 255"%s"name);
                
dini_Set(string"TDstring"InfoBoardInfo[id][InfoBoardTDstring]);
                  
format(IBI,sizeof(IBI), "Information Board\n\n%s"InfoBoardInfo[id][InfoBoardTDstring]);
                
TextDrawSetString(IBITDIBI);
                
formatstringsizeof( string ), "You have setted the Info-Board (ID: %d) text to %s."idname);
                
SendClientMessageplayeridCOLOR_WHITEstring);
                
SaveInfoBoard(id);
            }
        }
    }
    return 
1;

Reply


Messages In This Thread
Delete - by -CaRRoT - 26.01.2013, 05:56
Re: Textdraw problem - Doesn't disappear? - by SKAzini - 26.01.2013, 08:05
Re: Textdraw problem - Doesn't disappear? - by -CaRRoT - 30.01.2013, 11:07
Re: Textdraw problem - Doesn't disappear? - by -CaRRoT - 30.01.2013, 17:39
Re: Textdraw problem - Doesn't disappear? - by WorldPro - 30.01.2013, 18:01
Re: Textdraw problem - Doesn't disappear? - by -CaRRoT - 31.01.2013, 03:33
Re: Textdraw problem - Doesn't disappear? - by -CaRRoT - 31.01.2013, 18:52
Re: Textdraw problem - Doesn't disappear? - by -CaRRoT - 01.02.2013, 10:44

Forum Jump:


Users browsing this thread: 1 Guest(s)