Problem of update
#1

Hello all ,
I have a problem , my textdraw doesent want update

PHP код:
public OnPlayerDeath(playeridkilleridreason)
{
    
ShowMenu(playerid);
    
SendDeathMessage(killeridplayeridreason); 
    new 
string[250],string2[250],string3[250];
    new 
diedguy[26];
    new 
killername[26];
    new 
gunname[32];
    new  
hourminutesecond;
    
gettimehourminutesecond);
    
GetWeaponName(reason,gunname,sizeof(gunname));
    
GetPlayerName(killeridkillernamesizeof(killername));
    
GetPlayerName(playerid,diedguy,sizeof(diedguy));
    
format(stringsizeof(string), "Tu_as_ete_tue_par_%s"killername);
    
TextDrawSetString(TDEditor_KILL[2], string);
    
format(string2sizeof(string), "Tu_as_ete_tue_a_%i:%i:%i"hourminutesecond);
    
TextDrawSetString(TDEditor_KILL[3], string2);
    
format(string3sizeof(string), "Tu_as_ete_tue_avec_un_%s",gunname);
    
TextDrawSetString(TDEditor_KILL[4], string3);
    return 
1;

But one of them , work :
Код:
   format(string2, sizeof(string), "Tu_as_ete_tue_a_%i:%i:%i", hour, minute, second);
    TextDrawSetString(TDEditor_KILL[3], string2);
The problem is ,i can see ,the new string, but without killer name , and gunname

Thks for help
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)