Cash per IP
#5


UPDATE bg_user SET cash = 5000;
Even this code is wrong, if you wanna just add, not replace Tongue

 

You should use something like that:

UPDATE bg_user SET cash = cash + 5000 WHERE user_id = Paramount;
I am not sure, but with ip try to make so:

UPDATE bg_user SET cash = cash + 5000 WHERE ip = 123.45.67.89 LIMIT 1;

Thank you,Work Perfect Big Grin

Close please.



Messages In This Thread
[No subject] - by MrBuSta - 09-15-2013, 05:47 PM
[No subject] - by Nymphetamine - 09-15-2013, 05:50 PM
[No subject] - by MrBuSta - 09-15-2013, 05:52 PM
[No subject] - by Paramount - 09-15-2013, 06:16 PM
[No subject] - by MrBuSta - 09-15-2013, 06:23 PM
[No subject] - by kixtzz - 09-15-2013, 06:27 PM
[No subject] - by Paramount - 09-15-2013, 06:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)