[Help]How to make this code shorter
#3

So..

Код HTML:
SetPlayerTeamFromClass(playerid, classid)
{
	if (0 <= classid <= 2)
	{
		gTeam[playerid] = TEAM_BALLAS;
	}
	else if (3 <= classid <= 5)
	{
		gTeam[playerid] = TEAM_GROVE;
	}
	else if (6 <= classid <= 8)
	{
		gTeam[playerid] = TEAM_VAGOS;
	}
}
?

EDIT:
Thanks, it works (:

Could you tell me why:

GameTextForPlayer(playerid, "Text", 3000, 6)

Does not display anything?

Is there also a way to display this text until a new class is selected?
For example if the skin selector is at a Grove skin it says Grove, until you switch to Ballas where it would say Ballas?
Reply


Messages In This Thread
[Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:37
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 14:40
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:43
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 14:52
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 14:57
Re: [Help]How to make this code shorter - by CuervO - 14.02.2014, 15:10
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 15:15
Re: [Help]How to make this code shorter - by ColeMiner - 14.02.2014, 15:17
Re: [Help]How to make this code shorter - by DaniceMcHarley - 14.02.2014, 15:20
Re: [Help]How to make this code shorter - by AnthonyTimmers - 14.02.2014, 15:23

Forum Jump:


Users browsing this thread: 4 Guest(s)