Problem with /accept car sistem. I give rep ! :D
#11

Integrate the check into the accept command.

just before where it checks, and says that the slot is full..

if(playerVariables[playerid][pCarModel1] < 1)

Where you have these checks, should be checked by the empty slot checker, and based on that, it should start using the free slot.


With this script, there's nothing "wrong" with it, as it'll work, but the whole command can be done more efficiently. Instead of checking over and over if people are connected (Which they need to be to have typed the command), and rather than having an individual section for each car slot.

You just gotta read more of the script, and make it more efficient later on. If you keep making sloppy code, later on, it'll be harder and harder to read it to find the problems.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)