Jump to content
  • 0

argument type mismatch


star69

Question

Ero(area / rile) / warning-(ul / urile): : error 035: argument type mismatch (argument 2)
Liniile de cod / sursa / script-ul(obligatoriu):

	TextDrawBoxColor(APlayerData[playerid][MissionText], BarColor[PlayerInfo[playerid][pBar]]);

Problema intalnita (descriere): unde e BarColor[PlayerInfo[playerid][pBar]], trebuie sa fie o culoare.

Eu vreau ca fiecare jucator sa-si poata schimba culoarea acolo.

Am facut:

new BarColor[3][24] =
{
	{"0x9600CCE2"}, //
	{"0xC30000FF"}, //
	{"0x00FF14FF"} //

};

Aici functioneaza

COMMAND:mycolor(playerid, params[])
{
	// Check if the player has logged in
	if(gLogged[playerid] == 1)
	{
		SendClientMessage(playerid, -1, BarColor[PlayerInfo[playerid][pBar]]);
	}

	// Let the server know that this was a valid command
	return 1;
}

In mysql pBar e 0,1 sau 2
Imagini / Video (optional):
Ati incercat sa rezolvati singur?:  Da

Edited by star69
Link to comment
Share on other sites

1 answer to this question

Recommended Posts

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.