01.06.2015, 20:14
Quote:
By loading you mean the inventory of a player, right? If so, don't change anything to the above.
When a player connects, you need to execute a query that selects the items and the amount for the player with that user ID. Then load them and assign them to some global (per-player) variables. PS: "break;" stops the loop. If the model was found and string now stores the name of it, no need to keep looping. |
I guess I have to make a loop, but how would it look?
Before we did: 1 gun (1001) --> stored in Player[playerid][pTest]
Now we do: 3 guns (1001, 1004, 1002) --> stored in what?