• 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!
  • 2026 staff recruitment is open! Check it out and consider applying!

Jak dodac punkty w sql tylko dla graczy online

zduna

Banned User
Joined
May 3, 2010
Messages
201
Reaction score
0
Jak dodac punkty tylko playerom ktorzy sa online ? chodzi o kod sql
 
Code:
UPDATE `accounts` SET `premium_points` = `premium_points` + LICZBA_PKT WHERE SPRAWDŹ GRACZA CZY ONLINE = 1*

* Myślałem, że wiem, ale jednak nie wiem :p
 
SQL:
UPDATE accounts SET premium_points = premium_points + 100 WHERE id IN ( SELECET DISTINCT account_id FROM players WHERE online=1 )

@edit
bylem za wolny. Swoja droga to distinct nie potrzebny jak ktos ma 1 char online per account
 
SQL:
UPDATE `accounts` SET `premium_points` = `premium_points` + 100 WHERE id IN ( SELECT DISTINCT `account_id` FROM `players` WHERE `online` = 1 )

@koob
fix't
 
@up
Co fixed? apostrofy? Kto uzywa do jednej krotkiej kwerendy apostofow ?


@down
ah no tak.. literowka ;]
 
Back
Top