TD String ain't setting.
#1

As you see - I've created a TD , Made a command to Set it's string - and made that you can reach a location to make it appear. - Each one with it's own ID , and it's own string... But - The problem that , The TD shows WHEN it's empty [You didn't set a string] - But after setting a string , Nothing appear , Here are the codes :

PHP код:
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;

PHP код:
    for(new 0sizeof(InfoBoardInfo); i++)
    {
        if(
pickupid == InfoBoardInfo[i][InfoBoardPickupID])
        {
            if(
IsPlayerInRangeOfPoint(playerid5.0InfoBoardInfo[i][InfoBoardX], InfoBoardInfo[i][InfoBoardY], InfoBoardInfo[i][InfoBoardZ]))
               {
                new 
string[128];
                
TextDrawShowForPlayer(playeridIBI0);
                
TextDrawShowForPlayer(playeridIBI1);
                
TextDrawShowForPlayer(playeridIBI2);
                
TextDrawShowForPlayer(playeridIBI3);
                   
format(stringsizeof(string), "%s"InfoBoardInfo[i][InfoBoardTDstring]);
                
TextDrawShowForPlayer(playeridIBITD);
                
InfoBoardTimer SetTimer("HideTDInfo",5000,0);
                return 
1;
            }
        }
    } 
Reply
#2

Bump... 2nd page already..
Reply
#3

Bump - I need urgent help guys.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)