IsPlayerNearObject - Problem
#5

it says :-
pawn Код:
error 017: undefined symbol "box1"
pawn Код:
CMD:open(playerid, params[])
{
    if(IsPlayerNearObject(playerid, box1, 4.0))
    {
        GivePlayerWeapon(playerid, 24, 1000);
        GivePlayerWeapon(playerid, 29, 1000);
        SendClientMessage(playerid, 0xFFF000,"You had found the Box! Now you are allowed to kill");
        SendClientMessage(playerid, 0xFFF000,"Some weapons have been given to you.");
    }
    else if(!IsPlayerNearObject(playerid, box1, 10.0))
    {
        SendClientMessage(playerid, 0xFFFF00AA,"Dont Waste time.. find the box!");
    }
    return 1;
}

//my object
new box1 = CreateDynamicObject(2358,2245.6762700,-1183.1665000,1028.8868400,0.0000000,0.0000000,0.0000000,.interiorid = 15); //
Reply


Messages In This Thread
IsPlayerNearObject - Problem - by Avi Raj - 14.02.2014, 12:43
Re: IsPlayerNearObject - Problem - by newbienoob - 14.02.2014, 12:51
Re: IsPlayerNearObject - Problem - by Konstantinos - 14.02.2014, 12:52
Re: IsPlayerNearObject - Problem - by CuervO - 14.02.2014, 12:53
Re: IsPlayerNearObject - Problem - by Avi Raj - 14.02.2014, 12:53
Re: IsPlayerNearObject - Problem - by Konstantinos - 14.02.2014, 12:56
Re: IsPlayerNearObject - Problem - by CuervO - 14.02.2014, 12:57
Re: IsPlayerNearObject - Problem - by Avi Raj - 14.02.2014, 13:00
Re: IsPlayerNearObject - Problem - by Konstantinos - 14.02.2014, 13:01
Re: IsPlayerNearObject - Problem - by Avi Raj - 14.02.2014, 13:05

Forum Jump:


Users browsing this thread: 1 Guest(s)