SA-MP Forums Archive
Problem of update - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Problem of update (/showthread.php?tid=549329)



Problem of update - StreetRP - 06.12.2014

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