About Total Scores - 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: About Total Scores (
/showthread.php?tid=602288)
About Total Scores -
TitanZ - 05.03.2016
Solved
Re: About Total Scores -
xEF - 05.03.2016
You must create variables, then 'add' between them.
Re: About Total Scores -
TitanZ - 05.03.2016
yes, i've create a variable.
btw, can you give me an example?
This is a variable of scores
enum PlayerData
{
DuelScore,
LmsScore,
ParkourScore,
RobberyScore,
DMScore
};
new PlayerInfo[MAX_PLAYERS][PlayerData];
Re: About Total Scores -
xEF - 05.03.2016
Код:
new score11, totalscore;
score11 = PlayerInfo[playerid][score1];
totalscore = Float:PlayerInfo[playerid][score]+Float:score11;
That's an example of 2 score categories, using it on a command, for example /getplayerscoreinfo; score & score1, btw it would be same as duelscore & lmsscore, then edit as your needs.
+REP.
Regards,
Rodri.
Re: About Total Scores -
TitanZ - 05.03.2016
Quote:
Originally Posted by xEF
Код:
new score11, totalscore;
score11 = PlayerInfo[playerid][score1];
totalscore = Float:PlayerInfo[playerid][score]+Float:score11;
That's an example of 2 score categories. score & score1, btw it would be duelscore & lmsscore, then edit as your needs.
+REP.
Regards,
Rodri.
|
Thanks Rodri.