07.11.2010, 20:58
This code wonґt work correctly
When i standing on pickup and type command: /buybiz it say "You are not near biz" can someone help ?
pawn Код:
if(IsPlayerNearBiz(playerid) == -1) return SendClientMessage(playerid,siva,"ERROR: You are not near biz");
pawn Код:
stock IsPlayerNearBiz(playerid)
{
for(new C; C<IDBiz+1; C++)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, GetPVarFloat(C,"PickupX"),GetPVarFloat(C,"PickupY"), GetPVarFloat(C,"PickupZ"))) return C;
}
return -1;
}