GameTextForPlayer issue
#1

I have an issue with GameTextForPlayer .
The text are the numbers from a countdown but insted the textdraw prints 182 instead of the right number .
I added a print function and it prints the right numbers.
PHP код:
forward GameTextForEvent(const string[]);
public 
GameTextForEvent(const string[])
{
    foreach(
Player,i)
    {
        if(
IsPlayerConnected(i))
        {    if(
PartEvent[i] == 1)
            {
                
GameTextForPlayer(i,string,1000,4);
            }
        }
    }
    return 
1;
}
forward CountDownEvent();
public 
CountDownEvent()
{
    
CountDownVar--; 
    
printf("%d",CountDownVar);
    new 
string[128];
    if(
CountDownVar == 0)
    {
        
KillTimer(CountDownEventTimer);
        
CountDownVar 5
        foreach(
Player,i)
        {
            if(
PartEvent[i] == 1)
            {
                
TogglePlayerControllable(i,1);
                
format(string,sizeof(string),"%d mai sunt in event!",EventPlayers);
                
TextDrawSetString(EventTXD,string);
            }
        }
    }
    else
    {
        
SetTimer("CountDownEvent",1000,false);
        
format(stringsizeof(string), "%d"CountDownEventTimer);
        
GameTextForEvent(string);
    }
    return 
1;

Reply


Messages In This Thread
GameTextForPlayer issue - by TheDarkBlade - 22.12.2016, 19:39
Re: GameTextForPlayer issue - by Nero_3D - 22.12.2016, 20:17
Re: GameTextForPlayer issue - by Yaa - 22.12.2016, 20:35

Forum Jump:


Users browsing this thread: 1 Guest(s)