Little Help - 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: Little Help (
/showthread.php?tid=575975)
Little Help -
Sanady - 31.05.2015
Hello everybody, today I was making my new gang zone system, but I made also team system which counts from 0 to 3. It has 4 teams, but one const variable starts from 1, and when team 0 spawns on zone, zone is white, becouse of that variable which has colors. Now, how can I change variable to starts from -1?
Here is variable:
pawn Код:
new const ZoneColors[] = {
0xFFFFFF88,
0xFF460088,
0x0091FF88,
0xFFE77A88,
0x4ADE1888
};
If anyone don`t understand please post, I will try to explain better.
Re: Little Help -
Vince - 31.05.2015
You cannot. Just add + 1 when accessing an index, but be careful to not go out of bounds.
Re: Little Help -
Sanady - 31.05.2015
Quote:
Originally Posted by Vince
You cannot. Just add + 1 when accessing an index, but be careful to not go out of bounds.
|
Aha thank you