SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 21/10/2009, 01:54 PM   #1
Striker_Moe
Gangsta
 
Join Date: Apr 2009
Posts: 569
Reputation: 1
Default Death/kill textdraw help.

Aight..

Code:
public StatsInfromation()
{
	for(new i=0;i<MAX_PLAYERS;i++)
	{
		if (IsPlayerConnected(i))
	  {
		TextDrawHideForPlayer(i,PlayerStats[i]);
    format(str, sizeof(str), " ~r~Deaths ~w~%d - ~g~Kills ~w~%d" , kill[0], Death[0]);
    TextDrawSetString(PlayerStats[i],str);
    TextDrawShowForPlayer(i,PlayerStats[i]);
  	}
	}
	return 1;
}
I got all things definied, aswell as the crap for the textdraw at OnGameModeInit, then I got this at OnPlayerDeath:

Code:
	kill[killerid]++;
 	Death[playerid]++;
But it still - doesnt seem to work. I figured out that the death/kills in the textdraw are the ones of ID 0. How to fix?
Striker_Moe is offline  
Old 21/10/2009, 01:56 PM   #2
dice7
High-roller
 
Join Date: Apr 2009
Location: Slovenia
Posts: 2,200
Reputation: 22
Default Re: Death/kill textdraw help.

pawn Code:
kill[i], Death[i]
dice7 is offline  
Old 26/10/2009, 12:53 PM   #3
RenisiL
Huge Clucker
 
RenisiL's Avatar
 
Join Date: Aug 2008
Posts: 472
Reputation: 4
Default Re: Death/kill textdraw help.

You use my Filtscripts Kill and Death (TextDraw)?

- RenisiL
RenisiL is offline  
Old 18/12/2009, 10:39 AM   #4
GforceNL
Huge Clucker
 
Join Date: May 2009
Posts: 238
Reputation: 0
Default Re: Death/kill textdraw help.

Quote:
Originally Posted by RenisiL
You use my Filtscripts Kill and Death (TextDraw)?

- RenisiL
yes i have The Same Problem
GforceNL is offline  
Old 18/12/2009, 12:16 PM   #5
RenisiL
Huge Clucker
 
RenisiL's Avatar
 
Join Date: Aug 2008
Posts: 472
Reputation: 4
Default Re: Death/kill textdraw help.

Code:
kill[i], Death[i]
RenisiL is offline  
Old 18/12/2009, 01:25 PM   #6
GforceNL
Huge Clucker
 
Join Date: May 2009
Posts: 238
Reputation: 0
Default Re: Death/kill textdraw help.

Quote:
Originally Posted by RenisiL
Code:
kill[i], Death[i]
But Where i need to put it?


Sry for bad english :S
GforceNL is offline  
Old 18/12/2009, 01:33 PM   #7
M4S7ERMIND
Huge Clucker
 
Join Date: Jun 2009
Location: Russia
Posts: 237
Reputation: 0
Default Re: Death/kill textdraw help.

Replace kill[0] and death[0]
M4S7ERMIND is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Kill/Death Ratio and amount stats cozza123456 Help Archive 1 30/03/2010 08:12 AM
[Include] [INC]KIll Death Admin - ReVo_ ReVo_ Includes 6 02/01/2010 06:02 PM
[HELP] Need help - kill/death textdraw Striker_Moe Help Archive 9 01/01/2010 11:47 PM
Need some help with this formula to calculate kill death ratio Celson Help Archive 5 18/03/2009 12:35 PM


All times are GMT. The time now is 09:53 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.