error 035 - SetPlayerColor
#1

Hello

Still struggling... Now the shit gives me
Код:
: error 035: argument type mismatch (argument 2)
Script:
Код:
	if(PlayerInfo[playerid][pFaction] > 0)
	{
	    FactionInfo(PlayerInfo[playerid][pFaction]);
	    SetPlayerColor(playerid, FactionDetails[fColor]);
	    return 1;
	}
Can't understand what's wrong really...
Reply
#2

Show us the declaration of FactionDetails[fColor].
Reply
#3

Код:
enum Factions
{
	fLName,
	fSName,
	fLeader,
	fColor,
	fRank0,
	fRank1,
	fRank2,
	fRank3,
	fRank4,
	fRank5,
	fRank6
};
new FactionDetails[Factions][255];
Код:
	mysql_fetch_field("color", FactionDetails[fColor]);
Sorry! Just a bit irritated, over small things making my script useless..
Reply
#4

What is in the 'color' field in the MySQL table?
Reply
#5

Quote:
Originally Posted by Marcel
Посмотреть сообщение
What is in the 'color' field in the MySQL table?
The Color field is a Varchar. Example: 0x2641FEAA
Reply
#6

Quote:
Originally Posted by ******
Посмотреть сообщение
The "255" means you have a 2d array, so you are trying to set a colour to an array.
Well.. I changed it to 250, still no change.
Reply
#7

Well I need it for other places in the script ;S
Reply
#8

It gives me the same error, no mather what variable I use.
Reply
#9

I get this same error, no mather what variable I create.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)