Cash per IP
#4

yes i know command for give all 5k cash, UPDATE bg_user SET cash = 5000;   but i saw some ppl have 10+ account on server atm, and i dont want give 5k cash for this ppls all account..

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;


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)