Invalid OnPlayerPickUpDynamicPickup detect
#3

Quote:
Originally Posted by Logic_
Посмотреть сообщение
Move the if statement inside the loop. That's awful way to write that code.

PHP код:
public OnPlayerPickUpDynamicPickup(playeridpickupid

    for (new 
i!= MAX_DEALERi++)
    {
        if (!
DealershipData[i][dExists] && pickupid != DealershipData[i][dPickup]) continue;
        
ShowPlayerFooter(playeridsprintf("~n~~b~~h~%s~n~~g~~h~Stock: ~y~%d~n~~g~~h~Status: %s~n~~g~~h~type /buycar to buy"DealershipData[i][dName], DealershipData[i][dStock], (DealershipData[i][dLock] == 1) ? ("~r~~h~Close") : ("~g~~h~Open")), 1000); 
    } 
    return 
1

Will try this, thanks for help.
Reply


Messages In This Thread
Invalid OnPlayerPickUpDynamicPickup detect - by Jonggol - 27.04.2018, 09:01
Re: Invalid OnPlayerPickUpDynamicPickup detect - by Logic_ - 27.04.2018, 09:16
Re: Invalid OnPlayerPickUpDynamicPickup detect - by Jonggol - 27.04.2018, 09:32

Forum Jump:


Users browsing this thread: 1 Guest(s)