• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

AAC Hello, $player_name you have $premium_points Points.

cinekp

New Member
Joined
Mar 15, 2010
Messages
5
Reaction score
0
hello, i have problem, i have this code in my lay.php
Code:
<div class="Zaloguj">
             <div id="1111txt" class="Text9">
                        <?php if(!$logged){ ?>
                        Zaloguj się !
                        <?php } else { ?>
                        Witaj, $player_name, you have $premium_points Points.
                       
                   
                        <?php } ?>
                    </div>
        </div>

who can help me?
i need in $player_name = name of player
and $premium_point = a premium points.

i search in internet, but can't find. sorry for my bad english.
 
Solution
You can't use player name as interlocutor, you can use account name or number instead.

As you can see here: gesior/Gesior2012
The definition of premium points is gathered by $account_logged which is probably a global variable.

You can try to do something like:
PHP:
<div class="Zaloguj">
             <div id="1111txt" class="Text9">
                        <?php if(!$logged){ ?>
                        Zaloguj się !
                        <?php } else { ?>
                        Witaj, <?php echo $account_logged->getCustomField('name'); ?>, you have <?php echo $account_logged->getCustomField('premium_points'); ?> Points.
                     
                 
                        <?php } ?>
                    </div>...
I suppose you using something like znote or gesior so..
as you do on <?php if(!$logged){ ?>
$player_name and $premium_points are php vars so you have you use them inside <php>
after you declared them dunno where you use them like
PHP:
<?php echo $player_name; ?> you have <?php echo $premium_points; ?>
 
gesior
NOT WORK, ANY POST.
i have "Hello, you have points."
whats wrong?

layout.php know what is $player_name or $premium_points?
 
You can't use player name as interlocutor, you can use account name or number instead.

As you can see here: gesior/Gesior2012
The definition of premium points is gathered by $account_logged which is probably a global variable.

You can try to do something like:
PHP:
<div class="Zaloguj">
             <div id="1111txt" class="Text9">
                        <?php if(!$logged){ ?>
                        Zaloguj się !
                        <?php } else { ?>
                        Witaj, <?php echo $account_logged->getCustomField('name'); ?>, you have <?php echo $account_logged->getCustomField('premium_points'); ?> Points.
                     
                 
                        <?php } ?>
                    </div>
        </div>
 
Solution
You can't use player name as interlocutor, you can use account name or number instead.

As you can see here: gesior/Gesior2012
The definition of premium points is gathered by $account_logged which is probably a global variable.

You can try to do something like:
PHP:
<div class="Zaloguj">
             <div id="1111txt" class="Text9">
                        <?php if(!$logged){ ?>
                        Zaloguj się !
                        <?php } else { ?>
                        Witaj, <?php echo $account_logged->getCustomField('name'); ?>, you have <?php echo $account_logged->getCustomField('premium_points'); ?> Points.
                    
                
                        <?php } ?>
                    </div>
        </div>

BROOOOOOO YOU ARE THE BEST FOR ME ! Thanks you so much ! !! :D
 
SOLVED !!
You can't use player name as interlocutor, you can use account name or number instead.

As you can see here: gesior/Gesior2012
The definition of premium points is gathered by $account_logged which is probably a global variable.

You can try to do something like:
PHP:
<div class="Zaloguj">
             <div id="1111txt" class="Text9">
                        <?php if(!$logged){ ?>
                        Zaloguj się !
                        <?php } else { ?>
                        Witaj, <?php echo $account_logged->getCustomField('name'); ?>, you have <?php echo $account_logged->getCustomField('premium_points'); ?> Points.
                    
                
                        <?php } ?>
                    </div>
        </div>
 
Back
Top