[MySQL] All players saving the same stats.
#7

Code:
format(query, sizeof(query), "UPDATE `users` SET `gunpackages` = '%s', `packageammo` = '%s'",packages,ammo);
This query internationally sets all of the data to each account in the database since there is no 'WHERE' statement. It's like saying you just want to give money to everybody, it doesn't matter to you.

I will help you with this. Do you have a pID enumerator? Do you have any callback to load gun packages?
Reply


Messages In This Thread
[MySQL] All players saving the same stats. - by ounce - 30.07.2015, 16:57
Re: [MySQL] All players saving the same stats. - by ]Rafaellos[ - 30.07.2015, 17:04
Re: [MySQL] All players saving the same stats. - by gurmani11 - 30.07.2015, 17:05
Re: [MySQL] All players saving the same stats. - by dominik523 - 30.07.2015, 17:06
Re: [MySQL] All players saving the same stats. - by ounce - 30.07.2015, 17:08
Re: [MySQL] All players saving the same stats. - by ounce - 30.07.2015, 17:37
Re: [MySQL] All players saving the same stats. - by Jacket - 30.07.2015, 17:45
Re: [MySQL] All players saving the same stats. - by ounce - 30.07.2015, 17:54

Forum Jump:


Users browsing this thread: 1 Guest(s)