Why this ?
#1

Removed
Reply
#2

This is cleary a scripting error, check for indexes that are out of bounds like it said.
Reply
#3

Removed
Reply
#4

I need to have the script to fix it, I'm sorry. Maybe you could post it in a pawn on here.
Reply
#5

Removed
Reply
#6

It must show you which callback it is in the debugscript.
Reply
#7

Removed
Reply
#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
#9

Removed
Reply
#10

Just keep it as it is, thats the best you could do.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)