05.05.2011, 19:37
Hello, I got a question. How do i check how near someone is a object. Because i wanna make a cook command. And they need to make a fire first. But how do i check if they are near the fire?
if(IsPlayerInRangeOfPoint(playerid, 2.0, fire[playerid]))
warning 202: number of arguments does not match definition
warning 202: number of arguments does not match definition
if(IsPlayerInRangeOfPoint(playerid, 2.0, fire))
error 035: argument type mismatch (argument 3)
new Float:X,Float:Y,Float:Z;
GetObjectPos(fire,X,Y,Z);
if(IsPlayerInRangeOfPoint(playerid, 2.0,X,Y,Z)
{
//bla bla bla....
}