Object functions
#1

Hi,
How do I make function with object id's?
Code:
GetXYInFrontOfObject(objectid, &Float:ex, &Float:ey, Float:distance, Float:customrot = -1)//441
{
	new Float:ar;
	GetDynamicObjectPos(objectid, ex, ey, ar);
	if(customrot == -1) GetDynamicObjectRot(objectid, ar);//445
	else ar = customrot;

	ex += (distance * floatsin(-ar, degrees));
	ey += (distance * floatcos(-ar, degrees));
}
../gamemodes/data/gyvunai.txt(441) : warning 213: tag mismatch
../gamemodes/data/gyvunai.txt(445) : warning 202: number of arguments does not match definition
../gamemodes/data/gyvunai.txt(445) : warning 202: number of arguments does not match definition
Reply


Messages In This Thread
Object functions - by zaibaslr2 - 20.08.2015, 13:05
Re: Object functions - by thaKing - 20.08.2015, 13:13
Re: Object functions - by [KHK]Khalid - 20.08.2015, 13:21
Re: Object functions - by zaibaslr2 - 20.08.2015, 14:18

Forum Jump:


Users browsing this thread: 1 Guest(s)