About Total Scores
#1

Solved
Reply
#2

You must create variables, then 'add' between them.
Reply
#3

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];
Reply
#4

Код:
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.
Reply
#5

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)