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

Quote:
Originally Posted by iRage
Посмотреть сообщение
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 ); 
I've got all of that, and that's EXACTLY what I have. You can't set a colour as a string like that.

Quote:

newmode.pwn(295) : error 035: argument type mismatch (argument 2)

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)