|
You last visited: Today at 17:33
Advertisement
Need help with Online count [WEBSITE]
Discussion on Need help with Online count [WEBSITE] within the Flyff Private Server forum part of the Flyff category.
11/01/2015, 20:29
|
#1
|
elite*gold: 0
Join Date: Jul 2012
Posts: 141
Received Thanks: 7
|
Need help with Online count [WEBSITE]
Alright so i have a problem with my online count. i use the sapphire 2.2 website
as you see here my world server has 1 player connected but the website doesn't show any players online. this is the script
$_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] > 1'), 'OnlineCount');
is theres something wrong? please website coders help me
|
|
|
11/01/2015, 23:40
|
#2
|
elite*gold: 18
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
|
Change [MultiServer] > 1 to [MultiServer] != 0
|
|
|
11/02/2015, 02:22
|
#3
|
elite*gold: 0
Join Date: Jul 2012
Posts: 141
Received Thanks: 7
|
Quote:
Originally Posted by Sedrika
Change [MultiServer] > 1 to [MultiServer] != 0
|
Thanks for replying but no it didn't work
$_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 else should i try:/? can it be something wrong in the database?
|
|
|
11/04/2015, 00:48
|
#4
|
elite*gold: 0
Join Date: Nov 2010
Posts: 37
Received Thanks: 8
|
Quote:
|
$_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');
|
Change the red marked != to this > if you still have your Problem
|
|
|
11/13/2015, 11:15
|
#5
|
elite*gold: 0
Join Date: Jul 2011
Posts: 1,774
Received Thanks: 866
|
Quote:
Originally Posted by Aspire7730
Change the red marked != to this > if you still have your Problem
|
Doesn't make a difference.
|
|
|
11/13/2015, 12:04
|
#6
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
|
Quote:
Originally Posted by XYZ-Cannon
Doesn't make a difference.
|
It does in logic, because with > 1 there will be only shown the usercount of users in channels greater than 1 (which lots of servers don't even have) - != (or even > 0) is the right choice.
Quote:
Originally Posted by laitila
Thanks for replying but no it didn't work
$_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 else should i try:/? can it be something wrong in the database?
|
Remove the @'s in that statement (@ suppresses errors in PHP functions) - the query itself looks fine.
|
|
|
11/13/2015, 13:08
|
#7
|
elite*gold: 0
Join Date: Jul 2011
Posts: 1,774
Received Thanks: 866
|
Quote:
Originally Posted by xTwiLightx
It does in logic, because with > 1 there will be only shown the usercount of users in channels greater than 1 (which lots of servers don't even have) - != (or even > 0) is the right choice.
Remove the @'s in that statement (@ suppresses errors in PHP functions) - the query itself looks fine.
|
You should look whom I quoted. I said between != 0 and > 0 is no difference in that function.
|
|
|
11/13/2015, 15:21
|
#8
|
elite*gold: 0
Join Date: Jan 2009
Posts: 1,741
Received Thanks: 1,674
|
Quote:
Originally Posted by XYZ-Cannon
You should look whom I quoted. I said between != 0 and > 0 is no difference in that function.
|
If the MultiServer is negative, e.g. -1 (which won't happen, I know), it will also count. But while programming we should always be precise with what we want to achieve.
So to be exact, there IS a difference, even if it won't be noticed at all.
|
|
|
11/13/2015, 15:42
|
#9
|
elite*gold: 0
Join Date: Jul 2011
Posts: 1,774
Received Thanks: 866
|
Quote:
Originally Posted by xTwiLightx
If the MultiServer is negative, e.g. -1 (which won't happen, I know), it will also count. But while programming we should always be precise with what we want to achieve.
So to be exact, there IS a difference, even if it won't be noticed at all.
|
That's why I wrote in this function. Things which will never happen shouldn't be implemented, otherwise you would programm thousands of lines of code for an easy function.
|
|
|
 |
Similar Threads
|
[Navi Cat ER 1136] Column count doesn't match value count at row 1
04/16/2015 - Metin2 Private Server - 0 Replies
hey
Weiß jemand wie ich das Problem löse, google hilft mir nicht wirklich :/
Finde den Fehler nicht... bzw die fehlende Spalte what ever
würde mich sehr freuen wenn mir jemand helfen kann.
|
[Err] 1136 - Column count doesn't match value count at row 1 [Waffen einfügen]
10/11/2014 - Metin2 Private Server - 6 Replies
Hallo hab da ein komischer Fehler
1136 - Column count doesn't match value count at row 1
INSERT INTO `item_proto` VALUES ('164500', 'Testschwert+0', 'Testschwert+0', '1', '3', '0', '3', '56', '1', '16', '', '1', '1', '164501', '0', '0', '15', '1', '65', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '0', '-1', '-1', '-1', '-1', '-1', '-1', '0', '3', '0');
INSERT INTO `item_proto` VALUES ('164501', 'Testschwert+1', 'Testschwert+1', '1', '3', '0', '3', '56', '1', '16',...
|
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 17:34.
|
|