PDA

Orijinalini görmek için tıklayınız : yapdıgım bi eklenti


sromantr
05-06-2014, 05:20 PM
ogame scripti icin bi eklenti yapdım karanlık madde ile alım gerceklesdirme icin bazı ekleme yapdım ama nedense ısım yazıp gonderdigimde beyaz sayfa acıyor yardım edebilecek varmı

<?php

/*
################################################## ################################################## ##############

Scriptin Taban Sahibi : lucky - xgproyect

<?php

/*
################################################## ################################################## ##############

Scriptin Taban Sahibi : lucky - xgproyect

Scripti %30 luk kod payi ile gelistiren : Ayhan Peker

Destek Sitesi : [Linkleri Sadece Kayıtlı Üyeler Görebilir!]

################################################## ################################################## ##############
*/

if(!defined('INSIDE')){ die(header("location:../../"));}

class MondTransformer
{

public function __construct ($CurrentUser, $CurrentPlanet)
{

global $_POST,$lang,$user;

$TransTPL = gettemplate('infos/mondtransformer');
$parse = $lang;
$Mode = $_GET['mode'];
$darkmatter = $CurrentUser['darkmatter'];
// Abfrage ob schon ein Mond exestiert?.

$Galaxy = $CurrentPlanet['galaxy'];
$System = $CurrentPlanet['system'];
$Planet = $CurrentPlanet['planet'];

$QryGetMoonGalaxyData = "SELECT * FROM {{table}} ";
$QryGetMoonGalaxyData .= "WHERE ";
$QryGetMoonGalaxyData .= "`galaxy` = '". $Galaxy ."' AND ";
$QryGetMoonGalaxyData .= "`system` = '". $System ."' AND ";
$QryGetMoonGalaxyData .= "`planet` = '". $Planet ."';";
$MoonGalaxy = doquery ( $QryGetMoonGalaxyData, 'galaxy', true);

if ( $CurrentPlanet['mondtransformer'] == 1) {
$Chance = 20 ;
$MoonName = $_POST['name'];
if (!ctype_alnum ($MoonName)){
message ($lang['do_word_and_digit'] );
break;
}
$Galaxy = $CurrentPlanet['galaxy'];
$System = $CurrentPlanet['system'];
$Planet = $CurrentPlanet['planet'];
$Owner = $CurrentPlanet['id_owner'];
$MoonID = time();
//paquete de lunas
if($darkmatter <5000 && $Mode == 'luna'){
message ('Yeterince Karanlik Madden Yok. En Az Gereken 5.000 Karanlik Madde! '.$user['darkmatter'].' Karanlik Madden Var.',"/game.php?page=achatbonus", 3);
}elseif($MoonGalaxy['id_luna'] != 0 && $Mode == 'luna'){
message ('Zaten Bu Gezegende Ay Var!',"/game.php?page=achatbonus", 3);
}elseif($CurrentPlanet['planet_type'] != 1 && $Mode == 'luna'){
message ('Hayirdir. Bi Akilli Sen misin?',"/game.php?page=achatbonus", 3);
}elseif( $Mode == 'luna' && $darkmatter >= 5000 && $minas == 0){
//restamos la materia oscura
doquery("UPDATE {{table}} SET `darkmatter`=darkmatter-5000 WHERE id={$user['id']}",'users');
$NewOwnerMoon = CreateOneMoonRecord ( $Galaxy, $System, $Planet, $Owner, $MoonID, $MoonName, $Chance );

message ('5.000 Karanlik Madde Karsiliginda Gezegene Ay Eklenmistir. Katkinizdan Dolayi Tesekkur Ederiz. ',"../game.php?page=achatbonus", 5);

}
}

$Page = parsetemplate($TransTPL, $parse);
return $Page;
}

}


?>

tcelenkk
05-06-2014, 05:38 PM
ogame scripti icin bi eklenti yapdım karanlık madde ile alım gerceklesdirme icin bazı ekleme yapdım ama nedense ısım yazıp gonderdigimde beyaz sayfa acıyor yardım edebilecek varmı

<?php

/*
################################################## ################################################## ##############

Scriptin Taban Sahibi : lucky - xgproyect

<?php

/*
################################################## ################################################## ##############

Scriptin Taban Sahibi : lucky - xgproyect

Scripti %30 luk kod payi ile gelistiren : Ayhan Peker

Destek Sitesi : [Linkleri Sadece Kayıtlı Üyeler Görebilir!]

################################################## ################################################## ##############
*/

if(!defined('INSIDE')){ die(header("location:../../"));}

class MondTransformer
{

public function __construct ($CurrentUser, $CurrentPlanet)
{

global $_POST,$lang,$user;

$TransTPL = gettemplate('infos/mondtransformer');
$parse = $lang;
$Mode = $_GET['mode'];
$darkmatter = $CurrentUser['darkmatter'];
// Abfrage ob schon ein Mond exestiert?.

$Galaxy = $CurrentPlanet['galaxy'];
$System = $CurrentPlanet['system'];
$Planet = $CurrentPlanet['planet'];

$QryGetMoonGalaxyData = "SELECT * FROM {{table}} ";
$QryGetMoonGalaxyData .= "WHERE ";
$QryGetMoonGalaxyData .= "`galaxy` = '". $Galaxy ."' AND ";
$QryGetMoonGalaxyData .= "`system` = '". $System ."' AND ";
$QryGetMoonGalaxyData .= "`planet` = '". $Planet ."';";
$MoonGalaxy = doquery ( $QryGetMoonGalaxyData, 'galaxy', true);

if ( $CurrentPlanet['mondtransformer'] == 1) {
$Chance = 20 ;
$MoonName = $_POST['name'];
if (!ctype_alnum ($MoonName)){
message ($lang['do_word_and_digit'] );
break;
}
$Galaxy = $CurrentPlanet['galaxy'];
$System = $CurrentPlanet['system'];
$Planet = $CurrentPlanet['planet'];
$Owner = $CurrentPlanet['id_owner'];
$MoonID = time();
//paquete de lunas
if($darkmatter <5000 && $Mode == 'luna'){
message ('Yeterince Karanlik Madden Yok. En Az Gereken 5.000 Karanlik Madde! '.$user['darkmatter'].' Karanlik Madden Var.',"/game.php?page=achatbonus", 3);
}elseif($MoonGalaxy['id_luna'] != 0 && $Mode == 'luna'){
message ('Zaten Bu Gezegende Ay Var!',"/game.php?page=achatbonus", 3);
}elseif($CurrentPlanet['planet_type'] != 1 && $Mode == 'luna'){
message ('Hayirdir. Bi Akilli Sen misin?',"/game.php?page=achatbonus", 3);
}elseif( $Mode == 'luna' && $darkmatter >= 5000 && $minas == 0){
//restamos la materia oscura
doquery("UPDATE {{table}} SET `darkmatter`=darkmatter-5000 WHERE id={$user['id']}",'users');
$NewOwnerMoon = CreateOneMoonRecord ( $Galaxy, $System, $Planet, $Owner, $MoonID, $MoonName, $Chance );

message ('5.000 Karanlik Madde Karsiliginda Gezegene Ay Eklenmistir. Katkinizdan Dolayi Tesekkur Ederiz. ',"../game.php?page=achatbonus", 5);

}
}

$Page = parsetemplate($TransTPL, $parse);
return $Page;
}

}


?>

Canlı demo görebilirsek yardımcı olmaya çalışabilirim.

Sistem nerden hangi değişkeni gönderiyor ? Neye göre satın alım işlemi sağlanıyor ? bunların bilinmesi gerek.

sromantr
05-06-2014, 05:41 PM
sole anlatam ay satım alımı yapması gerekiyor ama normal karanlık madde baglamadan alım yapıo ama karanlık madde ile alımda beyaz sayfa olusduruo ozelden adres ve id pw verem isdersen bak ama sol menu de tesisler ay transfer binasına tıkla acılan sayfada alım sayfası olusuyor

sromantr
05-06-2014, 07:46 PM
konu kapatılabilir sorunu hallettim

ErayT™
05-06-2014, 08:13 PM
istek üzerine konu kilit