14.02.2014, 12:53
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); //