25.07.2010, 13:57
Hey guys. My apologizes for bothering you again.
But I really want this to be fixed.
I want that you can see your kills and deaths in a TextDraw.
I tryed but failed. please help.
The way I have it
On top
Well that's it.
Kills and deaths keep saying 0.
In the scriptfiles it's okay. They are telling me that I have the good amount of kills and deaths.
It is just that the textdraw doesn't shows them
Please help.
Thanks In Advance
But I really want this to be fixed.
I want that you can see your kills and deaths in a TextDraw.
I tryed but failed. please help.
The way I have it
On top
pawn Код:
new Text:KillDeath[MAX_PLAYERS];
forward killtimer(playerid);
pawn Код:
public OnPlayerConnect(playerid)
{
new string[400];
SetTimerEx("KillTimer",1000,true,"");
format(string,sizeof(string),"Kills: %d Deaths: %d",kills[playerid],deaths[playerid]);
KillDeath[playerid] = TextDrawCreate(250,250,string);
TextDrawShowForPlayer(playerid,KillDeath[playerid]);
logged[playerid] = 0;
return 1;
}
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid,playerid,reason);
deaths[playerid] ++;
kills[killerid] ++;
return 1;
}
pawn Код:
public killtimer(playerid)
{
new string[400];
TextDrawSetString(KillDeath[playerid],string);
return 1;
}
Kills and deaths keep saying 0.
In the scriptfiles it's okay. They are telling me that I have the good amount of kills and deaths.
It is just that the textdraw doesn't shows them

Please help.
Thanks In Advance