06.12.2014, 09:02
Hello all ,
I have a problem , my textdraw doesent want update
But one of them , work :
The problem is ,i can see ,the new string, but without killer name , and gunname
Thks for help
I have a problem , my textdraw doesent want update
PHP код:
public OnPlayerDeath(playerid, killerid, reason)
{
ShowMenu(playerid);
SendDeathMessage(killerid, playerid, reason);
new string[250],string2[250],string3[250];
new diedguy[26];
new killername[26];
new gunname[32];
new hour, minute, second;
gettime( hour, minute, second);
GetWeaponName(reason,gunname,sizeof(gunname));
GetPlayerName(killerid, killername, sizeof(killername));
GetPlayerName(playerid,diedguy,sizeof(diedguy));
format(string, sizeof(string), "Tu_as_ete_tue_par_%s", killername);
TextDrawSetString(TDEditor_KILL[2], string);
format(string2, sizeof(string), "Tu_as_ete_tue_a_%i:%i:%i", hour, minute, second);
TextDrawSetString(TDEditor_KILL[3], string2);
format(string3, sizeof(string), "Tu_as_ete_tue_avec_un_%s",gunname);
TextDrawSetString(TDEditor_KILL[4], string3);
return 1;
}
Код:
format(string2, sizeof(string), "Tu_as_ete_tue_a_%i:%i:%i", hour, minute, second); TextDrawSetString(TDEditor_KILL[3], string2);
Thks for help