08.06.2013, 09:09
Quote:
Is this the problem? This is from OnPlayerPickUp callback
pawn Код:
|
Try this one
pawn Код:
new propid = -1;
new ID = IsPlayerNearProperty(playerid);
for(new id; id<MAX_PROPERTIES; id++)
{
if(PropInfo[id][PickupNr] == 0)
{
propid = id;
break;
}
}
if(propid != -1)
{
new str[128];
format(str, 128, "~y~\"%s\"~n~~y~Price: ~w~$%d~n~~y~Profit: ~w~$%d~n~~y~Owner: ~w~%s~n~~y~Prop ID: ~w~%d", PropInfo[propid][PropName], PropInfo[propid][PropValue], PropInfo[propid][PropEarning], PropInfo[propid][PropOwner], ID);
GameTextForPlayer(playerid, str, 6000, 3);
}