Question
#9

Quote:
Originally Posted by xXxThunderxXx
Посмотреть сообщение
You Must Do .

Код:
public OnPlayerSpawn(playerid)
{
If(Example[playerid] == 1);
SetPlayerColor(playerid, ClanColor);
SendClientMessage(playerid, YELLOW, "You Are a clan Member So your Clan Color Has Been Set");
return 1;
}
Код:
Example means your clan variable e.g Grove, Ballas, Aztecaz
Код HTML:
If(Example[playerid] == 1);
Awesome exemple ..

1. If will give an error because that it's not defined .. There it's just 'if'
2. For that ';' before if you will recive an compile error (empty statement) because you don't write nothing there to put ';'

You can do it how i said above , or if you don't know how you can make it simplest like that:

Код HTML:
public OnPlayerSpawn(playerid)
{
	switch(Clan[playerid])
	{
	    case 1: SetPlayerColor(playerid, 0x800080FF); // Ballas color (Purple)
	    case 2: SetPlayerColor(playerid, 0x008000FF); // Grove color (Green)
	    case 3: SetPlayerColor(playerid, 0x00FFFFFF); // Varrios Los Aztecas Color (Aqua)
	    case 4: SetPlayerColor(playerid, 0xFFFF00FF); // Los Santos Vagos Color (Yellow)
	}

	return 1;
} // P.S Is just an exemple.
Reply


Messages In This Thread
Question - by Edw - 19.08.2015, 20:21
Re: Question - by brandypol - 19.08.2015, 22:52
Re: Question - by SumX - 19.08.2015, 22:54
Re: Question - by Edw - 20.08.2015, 09:19
Re: Question - by Mariciuc223 - 20.08.2015, 11:06
Re: Question - by Vince - 20.08.2015, 11:15
Re: Question - by Mariciuc223 - 20.08.2015, 12:25
Re: Question - by xXxThunderxXx - 20.08.2015, 14:13
Re: Question - by Mariciuc223 - 20.08.2015, 15:48

Forum Jump:


Users browsing this thread: 1 Guest(s)