Quick question
#1

For example I have this Var[MAX_PLAYERS][Example][5] and Var[playerid][example][1] = 2 and Var[playerid][example][1] = 4 while all the others are 0.How can I find the sum of all these variables without doing this

Var[playerid][example][0] + Var[playerid][example][1] + Var[playerid][example][2].....
Because I use 69 instead of 5 (don't ask) and it will be too long if I use the obvious way
Reply


Messages In This Thread
Quick question - by mirou123 - 22.03.2014, 14:49
Re: Quick question - by Konstantinos - 22.03.2014, 14:55
Re: Quick question - by Sascha - 22.03.2014, 14:56
Re: Quick question - by mirou123 - 22.03.2014, 14:56

Forum Jump:


Users browsing this thread: 1 Guest(s)