MYSQL Loading problem
#1

pawn Код:
mysql_function_query(MainPipeline, "SELECT * FROM `faction_vehicles`",  true, "OnQueryFinish", "i", THREAD_LOAD_FACVEHS);
Okay, I have these faction vehicles I load using mysql and they do load etc, but the problem is that when it loads a vehicle that is in "veh_slot" 0 from the database it will put it into the 1st slot instead of the 0th slot, so it goes up one which messes all the faction vehicles up, so how can I fix this?

Thanks

OnQueryFinish loading: http://pastebin.com/Lg2aNTZj
Reply
#2

Bump?
Reply
#3

Bump
Reply
#4

Nobody can be bothered to help me, urgh please
Reply
#5

I didn't really understand what it's going on. By the way, is the fac_id auto-incremented?
Reply
#6

Quote:
Originally Posted by _Zeus
Посмотреть сообщение
I didn't really understand what it's going on. By the way, is the fac_id auto-incremented?
Basically, say in the database I have a vehicle for faction ID 1 and there is 50 maximum vehicle slots per faction, the vehicle is in vehicle slot 5. When it loads the vehicle, it will be in vehicle slot 6? Yet in the database it is listed down as 5, so it goes up.

And no it isnt auto-increment.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)