error 035 - SetPlayerColor - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: error 035 - SetPlayerColor (
/showthread.php?tid=199228)
error 035 - SetPlayerColor -
hanzen - 14.12.2010
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...
Re: error 035 - SetPlayerColor -
Marcel - 14.12.2010
Show us the declaration of FactionDetails[fColor].
Re: error 035 - SetPlayerColor -
hanzen - 14.12.2010
Код:
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..
Re: error 035 - SetPlayerColor -
Marcel - 14.12.2010
What is in the 'color' field in the MySQL table?
Re: error 035 - SetPlayerColor -
hanzen - 15.12.2010
Quote:
Originally Posted by Marcel
What is in the 'color' field in the MySQL table?
|
The Color field is a Varchar. Example: 0x2641FEAA
Re: error 035 - SetPlayerColor -
hanzen - 15.12.2010
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.
Re: error 035 - SetPlayerColor -
hanzen - 15.12.2010
Well I need it for other places in the script ;S
Re: error 035 - SetPlayerColor -
hanzen - 15.12.2010
It gives me the same error, no mather what variable I use.
Re: error 035 - SetPlayerColor -
hanzen - 15.12.2010
I get this same error, no mather what variable I create.