Why this ?
#8

Quote:
Originally Posted by Fernado Samuel
Посмотреть сообщение
Is this the problem? This is from OnPlayerPickUp callback



pawn Код:
new propid = -1;
    new ID = IsPlayerNearProperty(playerid);
    for(new id; id<MAX_PROPERTIES; id++)
    {
        if(PropInfo[id][PickupNr] == pickupid)
        {
            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);
    }
It might be: if(PropInfo[id][PickupNr] == pickupid) Why isnt that just a number?
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);
    }
Reply


Messages In This Thread
Why this ? - by Fernado Samuel - 08.06.2013, 08:52
Re: Why this ? - by stundje - 08.06.2013, 08:54
Re: Why this ? - by Fernado Samuel - 08.06.2013, 09:01
Re: Why this ? - by stundje - 08.06.2013, 09:03
Re: Why this ? - by Fernado Samuel - 08.06.2013, 09:04
Re: Why this ? - by stundje - 08.06.2013, 09:05
Re: Why this ? - by Fernado Samuel - 08.06.2013, 09:06
Re: Why this ? - by stundje - 08.06.2013, 09:09
Re: Why this ? - by Fernado Samuel - 08.06.2013, 13:30
Re: Why this ? - by stundje - 08.06.2013, 13:48

Forum Jump:


Users browsing this thread: 3 Guest(s)