Errors in class create...
#6

Quote:
Originally Posted by propilot
Посмотреть сообщение
That you, now if I want to add text how do I do that?
and if I want to do case 2 and diff camera view I do this righT?
Код:
	switch(classid)
	{
		case 2: {
			SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
		}
		case 3: {
			// your code
		}
	}
or

Код:
{
	switch(classid)
	{
		case 0: {
			SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
		}
		case 1: {
			SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
			SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
		}
	}
	return 1;
Use GameTextForPlayer (look in wiki). Case 1 is the new position and camera positions to be taken when you choose classid 1 (NOTE: NOT SKIN ID 1)
Reply


Messages In This Thread
Errors in class create... - by propilot - 21.12.2010, 17:34
Respuesta: Errors in class create... - by admantis - 21.12.2010, 17:36
Re: Respuesta: Errors in class create... - by propilot - 21.12.2010, 17:38
Respuesta: Errors in class create... - by admantis - 21.12.2010, 17:40
Re: Respuesta: Errors in class create... - by propilot - 21.12.2010, 17:42
Respuesta: Re: Respuesta: Errors in class create... - by admantis - 21.12.2010, 17:44
Re: Errors in class create... - by propilot - 21.12.2010, 17:45

Forum Jump:


Users browsing this thread: 1 Guest(s)