Loading cars
#1

Hi, is it possible to get data from a certain rows in MySQL? I know I can do
Код:
cache_get_value_name...(rowid...
etc but I'm trying to add dynamic vehicles system to my gamemode and only load a player's cars once he logs in. I'm planning to allow player to have like 5 slots so I can't just select one row and load data. I want to load all the 5 cars so I could do it like this: let's say I have my cars in row 1, 6, 8, 10 and 12 then I could do it like this:
Код:
cache_get_value_name(1,...
cache_get_value_name(6,...
cache_get_value_name(8,...
cache_get_value_name(10,...
cache_get_value_name(12,...
but how do I know the row ids? Do I need to create some variables called Car1, Car2, Car3, etc for each player and then load his cars one by one?
Reply


Messages In This Thread
Loading cars - by GoldenLion - 24.12.2016, 13:15
Re: Loading cars - by BiosMarcel - 24.12.2016, 13:39
Re: Loading cars - by GoldenLion - 24.12.2016, 18:21

Forum Jump:


Users browsing this thread: 1 Guest(s)