Little Help
#1

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

You cannot. Just add + 1 when accessing an index, but be careful to not go out of bounds.
Reply
#3

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)