What's new

Discussion GetStats

  • Thread starter R1ch4rd
  • Start date
  • Views 1,249
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
What's the code to get stats? Eg:
Code:
StatAccuracy = GetStat("accuracy")
 
iProScopes

iProScopes

Contributor
Forum Addict
Messages
3,182
Reaction score
484
Points
335
Sin$
0
What's the code to get stats? Eg:
Code:
StatAccuracy = GetStat("accuracy")

Here:
Code:
self maps\mp\gametypes\_persistence::statSet( "kills", Value ); //Kills
self maps\mp\gametypes\_persistence::statSet( "deaths", Value ); //Deaths
self maps\mp\gametypes\_persistence::statSet( "wins", Value ); //Wins
self maps\mp\gametypes\_persistence::statSet( "losses", Value ); //Losses
self maps\mp\gametypes\_persistence::statSet( "accuracy", Value ); //Accuracy
self maps\mp\gametypes\_persistence::statSet( "total_hits", Value ); //Total Hits
self maps\mp\gametypes\_persistence::statSet( "hits", Value ); //Hits
self maps\mp\gametypes\_persistence::statSet( "misses", Value ); //Misses
self maps\mp\gametypes\_persistence::statSet( "headshots", Value ); //Headshots
self maps\mp\gametypes\_persistence::statSet( "assists", Value ); //Assists
self maps\mp\gametypes\_persistence::statSet( "win_streak", Value ); //Win Streak
self maps\mp\gametypes\_persistence::statSet( "kill_streak", Value ); //Kill Streak 
self maps\mp\gametypes\_persistence::statSet( "time_played_total", Value ); //Time Played
self maps\mp\gametypes\_persistence::statSet( "score", Value ); //Score
 
R1ch4rd

R1ch4rd

Like a baaaws
Messages
396
Reaction score
62
Points
85
Sin$
0
Here:
Code:
self maps\mp\gametypes\_persistence::statSet( "kills", Value ); //Kills
self maps\mp\gametypes\_persistence::statSet( "deaths", Value ); //Deaths
self maps\mp\gametypes\_persistence::statSet( "wins", Value ); //Wins
self maps\mp\gametypes\_persistence::statSet( "losses", Value ); //Losses
self maps\mp\gametypes\_persistence::statSet( "accuracy", Value ); //Accuracy
self maps\mp\gametypes\_persistence::statSet( "total_hits", Value ); //Total Hits
self maps\mp\gametypes\_persistence::statSet( "hits", Value ); //Hits
self maps\mp\gametypes\_persistence::statSet( "misses", Value ); //Misses
self maps\mp\gametypes\_persistence::statSet( "headshots", Value ); //Headshots
self maps\mp\gametypes\_persistence::statSet( "assists", Value ); //Assists
self maps\mp\gametypes\_persistence::statSet( "win_streak", Value ); //Win Streak
self maps\mp\gametypes\_persistence::statSet( "kill_streak", Value ); //Kill Streak 
self maps\mp\gametypes\_persistence::statSet( "time_played_total", Value ); //Time Played
self maps\mp\gametypes\_persistence::statSet( "score", Value ); //Score
That's setting stats. I want to grab the current stats and set them as a variable.
 
iProScopes

iProScopes

Contributor
Forum Addict
Messages
3,182
Reaction score
484
Points
335
Sin$
0
That's setting stats. I want to grab the current stats and set them as a variable.

I misunderstood.
sad.gif
 
N

NITRAM

Enthusiast
Messages
998
Reaction score
415
Points
165
Sin$
0
Your very bad at guesting so try looking in the fastfiles :wink:

Code:
StatAccuracy = self maps\mp\gametypes\_persistence::statGet( "accuracy" );
 
Top Bottom
Login
Register