OnPlayerEditAttachedObject
#1

Hi, simple question.

This will display the coordinates of the object right?

Код:
public OnPlayerEditAttachedObject(playerid, response, index, modelid, boneid, Float:fOffsetX, Float:fOffsetY, Float:fOffsetZ, Float:fRotX, Float:fRotY, Float:fRotZ, Float:fScaleX, Float:fScaleY, Float:fScaleZ)
{
	new string[128];
	format(string, sizeof(string), "x:%f, y:%f, z:%f, rx:%f, ry:%f, rz:%f",fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ);
	SendClientMessage(playerid, COLOR_GREY, string);
	return 1;
}
Reply
#2

Yes.
Reply
#3

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
Yes.
Alright, not sure about floats but will this cut the coordinates off at 3 number?

Код:
	new string[128];
	format(string, sizeof(string), "x:%3mf, y:%3mf, z:%3mf, rx:%3mf, ry:%3mf, rz:%3mf",fOffsetX,fOffsetY,fOffsetZ,fRotX,fRotY,fRotZ);
	SendClientMessage(playerid, COLOR_GREY, string);
	return 1;
Reply
#4

pawn Код:
%f // 5.123456789
%.2f // 5.12
%.4f // 5.1234
Reply
#5

Quote:
Originally Posted by Viniborn
Посмотреть сообщение
pawn Код:
%f // 5.123456789
%.2f // 5.12
%.4f // 5.1234
danke
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)