Quote:
Originally Posted by _Xerxes_
Quote:
Originally Posted by ♣ Joker ♠
Quote:
Originally Posted by snoob
Quote:
Originally Posted by johnathon956
Quote:
Originally Posted by Steven82
Very simple TUT, but will help the noobs. 
|
yep simple but works
|
work until you have more then 17 player ... then you are out of array boundary.
|
there is an easy fix for that
pawn Code:
SetPlayerColor(playerid, playerColors[playerid % sizeof playerColors]);
|
I have a question, what exactly does "%" do? I never found a good place to find an explanation :/
|
It calculates the Rest from a division
Example:
playerid = 48 48 % 17 = 14
playerid = 15 15 % 17 = 15