Load Player Vehicle
#1

Hello guys, i have a problem, i was working to create an include, but i have a little problem.

I do not know if I extracted the car id from db correctly to the player's variable (vehicleData[playerid][vVehicleScriptID][x])

https://pastebin.com/itw8cDcE //onPlayerVehicleLoad
Reply
#2

At the moment code looks ok (unless you have some problem you have not specified). However:
1. You created Personal_Vehicles but never use it, and then you are looping through all slots of vehicleData
2. Array[MAX_PLAYERS][ENUM][MAX_SLOTS] is counterintuitive, and will cause chaos with some string functions (if you add a string, let's say nameplate, to your enum) (strcpy macro comes to mind). [MAX_PLAYERS][MAX_SLOTS][ENUM] is something I'd recommend
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)