20.08.2011, 18:11
(
Последний раз редактировалось KoczkaHUN; 16.05.2012 в 12:47.
)
GetPlayerColor fix 0.2
-------------------------------------[Notice]-------------------------------------This is (as of 27/10/2011) a part of fixes.inc - if you use that include, there is no need to use THIS!
----------------------------------------------------------------------------------
What is it?
This include fixes the bug with GetPlayerColor.
The bug, from SA-MP Wiki:
Quote:
GetPlayerColor will return nothing unless SetPlayerColor has been used! |
How does it work?
It has an extended array which contains the default colors the players get by their ID.
When player connects, their color will be set to the same color, with SetPlayerColor.
From that, you can use GetPlayerColor anywhere.
How to use it?
Just download the include, save it as color_fix.inc in your pawno/includes folder.
In your gamemode, put it on the first lines ( but after a_samp.inc ):
pawn Код:
#include <color_fix>
Download:
PasteBin::KoczkaHUN<color_fix.inc>
Known bugs, disadvantages:
Not known.
Updated on 2011. 08. 21 to version 2:
Reduced memory usage from 500 array slots to 100. Thanks for Hiddos determining this.