20.08.2015, 13:05
Hi,
How do I make function with object id's?
../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
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(445) : warning 202: number of arguments does not match definition
../gamemodes/data/gyvunai.txt(445) : warning 202: number of arguments does not match definition