Re: Pokemon-Area Source (Discussion, Share and Support)
how can I rename the attacks ?
if I there is a renaming ban.
14-07-14
Chester326
Re: Pokemon-Area Source (Discussion, Share and Support)
not a clue
18-07-14
Twan
Re: Pokemon-Area Source (Discussion, Share and Support)
Quote:
Originally Posted by felixcruzer
I'm sorry, in the last thread i shared some not perfect Code.
With this, you can prevent players from seeing pages in your game, if their pokemon are defeated.
This is a better version of the "Player Pokémon Alive?" script:
Spoiler:
//Are player pokemon alive?
$kill_query = mysql_query("SELECT `opzak`, `leven`, SUM(`leven`) as `endleben` FROM `pokemon_speler` WHERE `user_id`='{$uid}' AND `opzak`='ja'");
while ($endleben = mysql_fetch_assoc($kill_query)){
if($endleben['endleben'] <= 0){
header("Location: ?page=pokemoncenter");
}
}
The problem was, if 1 pokemon in team was defeated, you also got send to pokemoncenter, although other pokemon in your team has some life left.
Now this should be fixed, i can't find any issue..
Have fun with this
Where to (re)place this?
18-07-14
felixcruzer
Re: Pokemon-Area Source (Discussion, Share and Support)
You can add this on any page you want, just copy in after the security include and see the result..
19-07-14
Twan
Re: Pokemon-Area Source (Discussion, Share and Support)
If i set it up on my webhost, it works fine.
But if i set it up on my localhost, i get a lot of errors: