Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 02:23

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

Advertisement



Frage wegen den Player Online Script

Discussion on Frage wegen den Player Online Script within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 82
Join Date: Jul 2009
Posts: 1,164
Received Thanks: 1,223
Frage wegen den Player Online Script

Hey Leute Wieso geht das Player Online Script Nicht Mehr Wen ich das änder?

PHP Code:
<?php
require_once("config.php");
mysql_select_db("player");
$exe mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 2 MINUTE) < last_play;");
$player_online mysql_fetch_object($exe)->count;

echo 
"$player_online Spieler sind online" 
?>
auf


PHP Code:
<?php
require_once("config.php");
mysql_select_db("player");
$exe mysql_query("SELECT COUNT(*) as count FROM player WHERE DATE_SUB(NOW(), INTERVAL 5 MINUTE) < last_play;");
$player_online mysql_fetch_object($exe)->count;

echo 
"Spieler Online $player_online
?>
Ich habe nur die Spalte geändert

PHP Code:
echo "$player_online Spieler sind online" 
auf

PHP Code:
echo "Spieler Online $player_online
er sagt mir dan immer 0 on wen ich es orgina lasse geht es woran liegt es

LG Casi
~Casi~ is offline  
Old 08/24/2010, 01:02   #2

 
elite*gold: 0
Join Date: Feb 2008
Posts: 2,754
Received Thanks: 1,748
Also allgemein fehlt nach dem echo nen " ; "..
Zudem: Mal versucht den Interval auf 2 Min zurückzustellen anstatt 5?
Also an der formatierung des Strings liegt es sicherlich nicht..
Computerfreek is offline  
Old 08/24/2010, 05:00   #3
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,567
Received Thanks: 974
Quote:
Originally Posted by Computerfreek View Post
Also allgemein fehlt nach dem echo nen " ; "..
Zudem: Mal versucht den Interval auf 2 Min zurückzustellen anstatt 5?
Also an der formatierung des Strings liegt es sicherlich nicht..
da es die letzte zeile ist, juckt uns das ";" nicht.
Mit dem interval hat's genau zuwenig zu tun, weils einfach nur die zeitangabe is.

habs bei mir getestet, bei mir klappts.
αίίR7 :3 is offline  
Old 08/24/2010, 05:30   #4
 
.Yacki's Avatar
 
elite*gold: 0
Join Date: Jul 2010
Posts: 7,437
Received Thanks: 3,655
Bei mir klappte es auch, aber ich könnte dir ja helfen
.Yacki is offline  
Reply


Similar Threads Similar Threads
Frage wegen HP Script
09/06/2010 - Metin2 Private Server - 3 Replies
Kann mir villeicht einer sagen was hier falsch ist <?php function update_boni($id, $boni, $expire, $coins) { $sql="update account set ".$boni." = '$expire', coins = '$coins' where id='$id'"; $answer=mysql_query($sql) or die("fehler"); return; }
WV Player Online | Script
07/14/2010 - Metin2 Private Server - 3 Replies
Hallo. Kan mir einer ein Script geben wo anzeigt wv player Online sind
Need a Script L2Walker to attack a player
07/05/2010 - Lineage 2 - 0 Replies
just that, a script to attack another player always. thxs !!
Script , CharScript & Player template
10/15/2009 - Grand Chase Philippines - 11 Replies
detected na po yan tatlo huhuh sana may new po ulit:mad:
script to sit when other player near
06/04/2008 - Lin2 Exploits, Hacks, Bots, Tools & Macros - 0 Replies
Hello guys, Just getting into making scripts and trying to make ig walker check for other players within 2000 range. And if there is someone in range then make the bot stop fighting and either SOE or sit until they are out of range the start fighting again... Any info Thanks



All times are GMT +2. The time now is 02:23.


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.