08.07.2015, 14:29
Hi..
I'm using mysql_tquery to INSERT a new base into the database that I have just created. I then wish to assign the inserted values to the base Enums aswell.. but I do not know the base ID that gets auto incremented.
How should I get that ID so I know the base ID (BaseInfo[baseid][bOwner] for example). I thought maybe to use the callback with tquery and then I can do 'cache_insert_id();'?
But I am getting the player position when he types the CMD.. does it affect something if I get the player position in the query callback?
I'm using mysql_tquery to INSERT a new base into the database that I have just created. I then wish to assign the inserted values to the base Enums aswell.. but I do not know the base ID that gets auto incremented.
How should I get that ID so I know the base ID (BaseInfo[baseid][bOwner] for example). I thought maybe to use the callback with tquery and then I can do 'cache_insert_id();'?
But I am getting the player position when he types the CMD.. does it affect something if I get the player position in the query callback?