How would I go about setting a colour as a string?
#2

You'll have to create an enum for accInfo.
PHP код:
enum playerenum
{
     
Colour
}
new 
accInfo[MAX_PLAYERS][playerenum]; 
Assign it a value.
PHP код:
accInfo[playerid][Colour] = FFFFFF 
Then the code you inserted would work perfectly.
PHP код:
new colStr[12];
formatcolStrsizeofcolStr ), "0x%sFF"accInfo playerid ] [ Colour ] );
SetPlayerColorplayeridcolStr ); 
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)