• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Solved Need some query

martinadicto

New Member
Joined
Jan 10, 2011
Messages
21
Reaction score
1
for example if one account have 10 points and you execute for example "UPDATE accounts SET premium_points= 3" the value 10 change to 3 ... how i make to change to "13" from "10+3" ?? hehe help
 
you need this..
1. Send all accounts 3 Points, you edit number points..
SQL:
UPDATE accounts SET premium_points = premium_points + 3
2. Send premium points specific account.. edit account name for acc playe you need send.
SQL:
UPDATE accounts SET premium_points = premium_points + 3 WHERE name = 'account name';
 
how do I give it only to players who are level greater than 300?
SQL:
UPDATE `accounts` SET `premium_points` = `premium points` + 3 AND `account_id` IN (SELECT `account_id` FROM `players` WHERE `level` >= 300);
I didn't check it.
 
you need this..
1. Send all accounts 3 Points, you edit number points..
SQL:
UPDATE accounts SET premium_points = premium_points + 3
2. Send premium points specific account.. edit account name for acc playe you need send.
SQL:
UPDATE accounts SET premium_points = premium_points + 3 WHERE name = 'account name';

if i wanna send points only for player online? you know the query??
 
SQL:
UPDATE `accounts` SET `premium_points` = `premium points` + 3 AND `account_id` IN (SELECT `account_id` FROM `players` WHERE `level` >= 300);
I didn't check it.


SQL:
UPDATE `accounts` SET `premium_points` = `premium points` + 3 AND `account_id` IN (SELECT `account_id` FROM `players` WHERE `online` = 1);
For players that is online (did not check it)
 
Back
Top