When i put the table name, then it works great. Saves data inside my database etc.
[PHP]Format(test, sizeof(test), "INSERT INTO fort(steamid, ingame) VALUES ('%s',1)", auth);[PHP] - it works.
But when i will put there %s, so it will look like this:
PHP Code:
Format(test, sizeof(test), "INSERT INTO %s(steamid, ingame) VALUES ('%s',1)", tablename, auth);
- then it doesn't work. Just like it was skipping.
Did you actually try to put a string as a table name? Or maybe there is other solution?
But i didn't told you why i need to easy change that table. It will be on more than one server, and i need to have a seperate table for each server.
Thanks for help, btw.