Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Flyff > Flyff Private Server
You last visited: Today at 18:49

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Help] Website Online Count

Discussion on [Help] Website Online Count within the Flyff Private Server forum part of the Flyff category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2020
Posts: 20
Received Thanks: 0
[Help] Website Online Count

Hello! greetings epvp. there is a problem with my online count in website. its not going up. it always says zero. I investigated the inc files.


and this is the code. from website online count
odbc_exec($mssql, 'USE [ACCOUNT_DBF]');
$online = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [ACCOUNT_TBL] WHERE isuse = \'J\'');

<td>Online User:</td>
<td><?php echo odbc_result($online, 'count'); ?></td>

then. I go to my database in account_dbf. I check the isuse. and all are T even tho I am online.
also, the multiverse in character_table always stay at zero. even tho im online. omg.

what to do with this? thanks guys!
TheRealMadara is offline  
Old 11/07/2020, 02:13   #2
 
xTwiLightx's Avatar
 
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,672
Better use the Multiserver column in the CHARACTER_TBL of the CHARACTER_01_DBF.
xTwiLightx is offline  
Old 11/07/2020, 07:16   #3
 
elite*gold: 0
Join Date: Oct 2020
Posts: 20
Received Thanks: 0
Quote:
Originally Posted by xTwiLightx View Post
Better use the Multiserver column in the CHARACTER_TBL of the CHARACTER_01_DBF.
Hello xTwilight! thanks for the reply, I checked the multiserver column in CHARACTER_TBL. it always stays at 0 even when im logged in or logged out. any clue on why that is? thanks again!
TheRealMadara is offline  
Old 11/07/2020, 09:07   #4
 
Tamus's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 99
Received Thanks: 8
Quote:
Originally Posted by TheRealMadara View Post
Hello xTwilight! thanks for the reply, I checked the multiserver column in CHARACTER_TBL. it always stays at 0 even when im logged in or logged out. any clue on why that is? thanks again!
check your function if its local ip or online ip
Tamus is offline  
Old 11/07/2020, 09:56   #5
 
elite*gold: 0
Join Date: Oct 2020
Posts: 20
Received Thanks: 0
Quote:
Originally Posted by Tamus View Post
check your function if its local ip or online ip
thanks for the reply tamus. what file do I need to check for the ip? thanks
TheRealMadara is offline  
Old 11/07/2020, 12:16   #6
 
elite*gold: 0
Join Date: Sep 2020
Posts: 22
Received Thanks: 5
Use this
aqwp is offline  
Thanks
2 Users
Old 11/07/2020, 13:54   #7
 
elite*gold: 0
Join Date: Oct 2020
Posts: 20
Received Thanks: 0
Quote:
Originally Posted by aqwp View Post
Use this
Thanks. I will try to run this script in my database and update you what hapenned

Lifesaver man! it worked for me! you got my thanks!
TheRealMadara is offline  
Old 11/07/2020, 14:02   #8
 
elite*gold: 0
Join Date: Sep 2020
Posts: 22
Received Thanks: 5
You're welcome, had this issue myself a while back, cost me some days to find out where the issue came from aswell.
aqwp is offline  
Old 11/07/2020, 16:25   #9
 
Tamus's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 99
Received Thanks: 8
Quote:
Originally Posted by TheRealMadara View Post
thanks for the reply tamus. what file do I need to check for the ip? thanks
here
PHP Code:
    $_CONFIG['allg_user_online'] =  [MENTION=311501]ODB[/MENTION]c_result [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect'SELECT     COUNT([MultiServer]) as OnlineCount FROM [' $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] > 0'), 'OnlineCount'); 
Tamus is offline  
Old 11/16/2020, 18:11   #10
 
Wezzy_Dev's Avatar
 
elite*gold: 0
Join Date: Feb 2014
Posts: 248
Received Thanks: 28
Quote:
Originally Posted by TheRealMadara View Post
Hello! greetings epvp. there is a problem with my online count in website. its not going up. it always says zero. I investigated the inc files.


and this is the code. from website online count
odbc_exec($mssql, 'USE [ACCOUNT_DBF]');
$online = odbc_exec($mssql, 'SELECT COUNT(*) as count FROM [ACCOUNT_TBL] WHERE isuse = \'J\'');

<td>Online User:</td>
<td><?php echo odbc_result($online, 'count'); ?></td>

then. I go to my database in account_dbf. I check the isuse. and all are T even tho I am online.
also, the multiverse in character_table always stay at zero. even tho im online. omg.

what to do with this? thanks guys!


ONLINE COUNT PHP CODE
Wezzy_Dev is offline  
Old 11/21/2020, 02:54   #11
 
Tamus's Avatar
 
elite*gold: 0
Join Date: Aug 2020
Posts: 99
Received Thanks: 8
Quote:
Originally Posted by Wezzy_Dev View Post
ONLINE COUNT PHP CODE
welcome back rjay bacaya
Tamus is offline  
Old 08/26/2022, 21:49   #12
 
elite*gold: 0
Join Date: Apr 2011
Posts: 2
Received Thanks: 0
Thumbs up

i begin to wonder if this is right or wrong and/or i miss something
$_CONFIG['allg_user_online'] = odbc_result(odbc_exec($odbc_connect, 'SELECT COUNT([MultiServer]) as OnlineCount FROM [' . $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] !=0; '), 'OnlineCount');

what ever i do its stay 0 also in the sql manager is see multiserver but stays 0

Quote:
Originally Posted by Tamus View Post
here
PHP Code:
    $_CONFIG['allg_user_online'] =   [MENTION=311501]ODB[/MENTION]c_result  [MENTION=311501]ODB[/MENTION]c_exec($odbc_connect'SELECT     COUNT([MultiServer]) as OnlineCount FROM [' $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] > 0'), 'OnlineCount'); 
if have try this however am sorry but it doesnt work
i have this: $_CONFIG['allg_user_online'] = odbc_result(odbc_exec($odbc_connect, 'SELECT COUNT([MultiServer]) as OnlineCount FROM [' . $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] !=0; '), 'OnlineCount');
and player online well still 0

okay i tryed this $_CONFIG['allg_user_online'] = @c_result @c_exec($odbc_connect, 'SELECT COUNT([MultiServer]) as OnlineCount FROM [' . $_CONFIG['db_databases']['chr'] . '].[dbo].[CHARACTER_TBL] WHERE [MultiServer] > 0'), 'OnlineCount');
but got this error : Parse error: syntax error, unexpected '=', expecting ']' in C:\xampp\htdocs\includes\xinc_config.php on line 76
rdenheijer is offline  
Reply


Similar Threads Similar Threads
SC: Count=0 to Count=1 [Help]
04/23/2012 - Facebook - 0 Replies
Hi guys, I found Rhega Count=0 to count=1 guide but the instructions are not clear. Please if someone know how to make count=0 items to count=1 please share it to us, or please make a clear instructions :) We really need it, please share :handsdown:
Navicat [Err1136] - Column count doesn't match value count at row 1
02/21/2012 - Metin2 Private Server - 2 Replies
Hallöchen Liebe Com, Als ich gerade in der Querry Table auf meinem Server die 80er Rüstungen erneut einfügen wollte, stoß ich auf diesen Fehler: INSERT INTO `item_proto` VALUES ('12039', 'Auraplattenpanzer+9', 'Auraplattenpanzer +9', '2','0','0','2','300','1','1','0','3000','10000',' 1','90','0','0','8','4294967290','37','20','10','4 0','0','154','0','26','0','45','0','64944','127',' 65008','21631','4855','0','0','15','100','3'); 1136 - Column count doesn't match value count at row 1
Navicat - [Err] 1136 - Column count doesn't match value count at row 1
01/14/2012 - Metin2 Private Server - 1 Replies
Hallo x( Ich weis nicht ob ich zu doof bin ein loch in den Schnee zu pissen oder ob wirklich was falsch hier ist.. Aufjedenfall muss ich die Querry für die 12 neuen metin steine in Serverside einfügen aber jedesmal bekomme ich die meldung: INSERT INTO mob_proto VALUES(8028, 'Metin der Hoffnung', 'Metin der Hoffnung', 5, 2, 3, 95, '', 'NOMOVE', 0, '', 'STUN,SLOW,CURSE,TERROR', 0, '', 0, 0, 0, 60, 0, 0, 0, 999999, 5, 1, 184800, 92400, 540, 57, 9529, 9530, 0, 2000, 175, 0, 0, 0, 0, 0, 0, 0,...
column count doesn't match value count value at row 1 fehler beheben. wie?
12/15/2011 - Metin2 Private Server - 1 Replies
Hallo Epvp ich habe bei den 1678 serverfiles von daroo diesen fehler hier column count doesn't match value count value at row 1 wenn ich etwas in die item_proto oder in die mob_proto hinzufügen will z.B wenn ich querys einfügen will kommt dieser fehler habe schon alles ausprobiert mit 6 0en hinten dran aber es klappt einfach nichts Bitte helft mir :) Bitte helft mir :( :(
Daroo Files Lehrer [Err] 1136 - Column count doesn't match value count at row 1
12/08/2011 - Metin2 Private Server - 3 Replies
Hallo , Wollte bei den Daroo Files die LKehrer bestücken. Manche habe ich schon doch ich habe ehrlich keine Lust mehr bekommen. Und habe gehofft das es hier welche Released haben. Ich habe auch 2 Themen dazu gefunden mit den Release. Doch wenn ich sie einfügen will kommt dieser Fehler 1136 - Column count doesn't match value count at row 1



All times are GMT +1. The time now is 18:49.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.