Need help with Colorsaving (SA:MP ID Color)
#1

Hi Community,
I want to save the Color of the Player at OnPlayerConnect. (Color of the ID)
But if i want to set the Color to the Connect color (SA:MP ID Color)
Doesn't work.

Over Main:
Код:
new poldcolor[MAX_PLAYERS];
In OnPlayerConnect:
Код:
poldcolor[playerid] = GetPlayerColor(playerid);
Someone can help me ?
Reply
#2

Player's color is in hexadecimal code. Search for HexToInt and IntToHex functions on the forum. Convert the color to integer by using HexToInt function and then store it to the player's variable and when you want to load it just use IntToHex function to get the hexadecimal code from integer.
Reply
#3

Quote:
Originally Posted by Don Correlli
Player's color is in hexadecimal code. Search for HexToInt and IntToHex functions on the forum. Convert the color to integer by using HexToInt function and then store it to the player's variable and when you want to load it just use IntToHex function to get the hexadecimal code from integer.
Okay. Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)