Multiple owned cars identification problem
#16

Here
pawn Code:
new veh;
    veh=FindEmptyPlayerSlot(playerid);
    printf("Empty player veh slot: %d",veh);
-1 was printed.

BUT, here
pawn Code:
stock FindEmptyPlayerSlot(playerid)
{
    for(new i; i<2; i++)
    {
        if(PlayerInfo[playerid][PVehicle][i] == INVALID_VEHICLE_ID)
        {
            printf("%d",i);
            return i;
        }
    }
    return -1;
}
0 was printed, so what the ..?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)