Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server
You last visited: Today at 17:28

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

Advertisement



Vote4Coins Script funktioniert nicht.

Discussion on Vote4Coins Script funktioniert nicht. within the Metin2 Private Server forum part of the Metin2 category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jul 2010
Posts: 2,073
Received Thanks: 601
Vote4Coins Script funktioniert nicht.

Moin,


Mein Vote4Coins Script funktioniert nicht ganz :-(
PHP Code:
<div id="content">            <div class="postui2 text-title">
                    <h2>
                  Vote
                    
                    </h2>
</div>
                <div class="postui2 text-con">
                <div class="con-wrap">
<?PHP
  
if(isset($_SESSION['user_admin']) && checkInt($_SESSION['user_admin']) && $_SESSION['user_admin']>=0) {
?>
<?php

class Vote
{

    
## Edit the info to your liking
    
    
var $config = array(
        
'db_host'        =>    'xx.xx.xx.xxx',
        
'db_user'        =>    'root',
        
'db_pass'        =>    'xxxxxxxxxxxxxxxx',
        
'db_database'    =>    'account',
        
## Wie viele Stunden müssen die Spieler warten bis sie wieder Voten können ?
        
'vote_int'       =>    24,
        
## Wie Viel Coins bekommt man fürs Voten ?
        
'vote_points'    =>    25
    
);
    
    
    public function 
__construct()
    {
        
$connect mysql_connect($this->config['db_host'], $this->config['db_user'], $this->config['db_pass']);
        
        if(!
$connect)
            die(
mysql_error());
            
        
$db mysql_select_db($this->config['db_database'], $connect);
        
        if(!
$db)
            die(
mysql_error());
        
    }

  
    
    public function 
do_vote()
    {
        
$name mysql_real_escape_string($_POST['name']);
        

            
$fetch mysql_query("SELECT * FROM `account` WHERE `login` LIKE '".$_SESSION['user_name']."'" "LIMIT 1") or die(mysql_error());
            
$get mysql_fetch_array($fetch);
            
        
            
            if((
time() - $get['lastvote']) < (3600 $this->config['vote_int']) && $get['lastvote'] != 0)
            {
                
$hours_left round((((($get['lastvote'] + (3600 $this->config['vote_int'])) - time()) / 3600)), 0);
                die(
'Du kanns erst wieder in '.$hours_left.' stunden Voten!.');
            }
            
            else
            {
                
mysql_query("UPDATE `account` SET `coins` = (`coins` + ".$this->config['vote_points']."), `lastvote` = '".time()."' WHERE `login` LIKE '".$_SESSION['user_name']."' LIMIT 1") or die(mysql_error());
?>


<meta http-equiv="refresh" content="2;url=http://www.topliste.****************/In/3820-hiroshi2-com.htm">


<?php
                
echo "Sie werden jetzt zur Vote seite weitergeleitet ...";
                
            }
        
        
    }
    
    public function 
vote_forms()
    {
        if(!isset(
$_POST['submit']))
        {
            echo 
"
                <span style='color: red; font-weight: bold;'>Du bekommst Coins fuer jeden Vote! (Alle 12 Stunden)</span><br /><br>Das Voten mit mehreren Accounts wird mit einer Account-Sperre bestraft.<br /><br />die Coins werden erst nach dem Voten gutgeschrieben.<br>
                <form method='post' action=''>
                    <input type='submit' name='submit' value='Vote!' />
                </form>
            "
;
            
        }
        else
        {
            
$this->do_vote();
        }
    }
}
?>
<?php

$vote 
= new Vote();
$vote->vote_forms();
?> 
<?php
$str 
'PHA+IDxwPg==';
echo 
base64_decode($str);
?>
<?PHP
  
}
  else {
    echo
'<p class="meldung">Sie müssen für diesen Bereich angemeldet sein.</p>';
  }
?>
</div> 
                <div class="postui2 text-end">
             
                
                  
    </div></div>

Habe es in meinem UserCP eingebunden usw. Wenn ich nun auf "Vote!" klicke, kommt
PHP Code:
Vote4Coins
Unknown column 
'lastvote' in 'field list' 
Da ich mich leider mit Php nicht auskenne usw, bräuchte ich eure hilfe :x

Viele Grüße

Black
♥ .Meroc' ♥ is offline  
Old 07/19/2011, 13:27   #2
 
iYoshix3's Avatar
 
elite*gold: 0
Join Date: Jun 2010
Posts: 1,264
Received Thanks: 2,019
die Spalte lastvote ist in der account.account Tabelle nicht enthalten.

Mfg
iYoshix3 is offline  
Thanks
1 User
Old 07/19/2011, 13:32   #3
 
elite*gold: 0
Join Date: Jul 2010
Posts: 2,073
Received Thanks: 601
Danke.
Etwas peinliche frage, aber wie mache ich in Navicat ne neue Spalte in der account tabelle? xD


Habs hinbekommen das man weitergeleitet wird, allerdings bekomme ich keine coins beim voten :/
♥ .Meroc' ♥ is offline  
Reply


Similar Threads Similar Threads
v15 Ranking script funktioniert nicht
06/17/2011 - Flyff Private Server - 5 Replies
Hi leute habe mal das ranking script von dem Theard homepage tools genommen doch als ich alles konfiguiert habe kommt nur configuration incorecta... was kann ich da tun leigt dass am script??
[Help]Werdernators Hp Script Itemshop funktioniert nicht
04/19/2011 - Metin2 Private Server - 0 Replies
HI liebe E*pvp, Ich hoffe das mir zu diesem problem manche antworten wiel sonst kriege ich leider keine antworten-.- Naja ien versuch ist´s wert. Also ich habe mir das Hp Script von Werdernator runtergeladen und aufn Webspace (auch aufn localen pc gehabt aber gleiches Problem) intsalliert funktioniert problemlos. Zeigt alles an DB usw. Nur bei den Item-Shop harkts: http://npshare.de/files/7157d3db/Unbenannt.JPG.JP G
AutoIt Script funktioniert nicht im Spiel
03/27/2011 - AutoIt - 3 Replies
Hi Leute, hab vor kurzem mal angefangen mit Pixel-Bots und hab nun schon einige Probleme selbst beiseite schaffen können. Allerdings habe ich nun ein Problem bei dem ich nicht weiter komme. Mein Botscript funktioniert nicht im Spiel. Es handelt sich dabei um das Spiel MicroVolts und ich wollte vorzugsweise erstmal bestimmte Farbpixel nutzen um mich erst auf ein Modell zu konzentrieren. Liegt es vll. an X-Trap das diese AutoIt scripts nicht im spiel gehen?
kleines autoit script funktioniert nicht
06/07/2010 - AutoIt - 5 Replies
Hallo, ich versuche jetzt seit ca 1 oder 2 stunden dieses dämliche script zum laufen zu bringen was einfach nicht funktioniert -.- es lässt sich auch compilieren aber öffnet sich dann einfach nicht :facepalm: hier mal der source teilweise #include <IE.au3> HotKeySet ("{F8}", "_start") HotKeySet ("{F9}", "_ende") HotKeySet ("{F7}", "pause") Func pause() MsgBox (0, "lol", "Bot wurde Angehalten!")
[Help] AutoIt 3 Script funktioniert nicht
02/15/2010 - AutoIt - 5 Replies
hi, habe ein Script geschrieben, aber irgendwie beendet sich das immer von selbst. Script: #include <ButtonConstants.au3> #include <EditConstants.au3> #include <GUIConstantsEx.au3> #include <StaticConstants.au3> #include <WindowsConstants.au3>



All times are GMT +2. The time now is 17:28.


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.