Quick question
#2

By using a loop:
pawn Код:
new
    sum;

for (new i; i != 69; ++i) sum += Var[playerid][example][i];
Be sure that you change 69 with the exact size of the last dimension. A higher value can cause run time error: Array index out of bounds.
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)