-
Apprentice
Record Online in MuCore
Hello, i want to put a Record Online in my mucore 1.0.8
this is my idea about script, i know is really bad all codes, but is my idea, thats what am here, so you can help to develop.
//For all this i have a Table: Record_Online and column: Record with atributtes: Int - 4 - Allow Nulls
//statistics.php
//in this php file and line is where i want to show the info to record online in my mucore and i define $onlineaa
<td>Record:</td><td><b><font color="#009900"><?=$onlineaa;?></font></b></td>
//setup.php
//in this other php file is where i want to declare all operations and consults and update the data base
//setup.php obviusly are "include" in statisctics.php
//my idea aboout the consult and operation will be next:
$online2 = SELECT Record FROM Record_Online; //my idea here is $online2 get data there is in Record
//now here Record get data elsewhere connectstat
$online1 = mssql_num_rows(mssql_query("SELECT connectstat as numero FROM MEMB_STAT WHERE ConnectStat = 1"));
if $online1 > $Online2 then update Record FROM Record_Online SET $Online1
else do nothing;
in short words, i need the Record column from Record_Online table update itselft basing in all connected, if is higher then udate value in Record if not do nothing
so $online2 can get always updated data from Record
maybe it can do the operation with procedures, but is the same for me, i dont know how.
i know is not free your work, so you can tell me how much or how can we got a deal.
Thanks.
-
-
Re: Record Online in MuCore
I actually didn't read all of that. but I think that you need an Online Counter? to put in your MuCore Template or what..
If you need an Online counter
I can give a little guide here >>> LINK
-
Apprentice
Re: Record Online in MuCore
mm not exaclty, that you show me is a simple "online player" that i already have, i want to add a "record online" is apart from "player online" i mean, i want to add a max player was connected in server.
-
Re: Record Online in MuCore
yeah. that's it. that's an Online Counter.