Raised This Month: $ Target: $400
 0% 

Add avatar player to MOTD


Post New Thread Reply   
 
Thread Tools Display Modes
SephirothSG
SourceMod Donor
Join Date: Jun 2013
Old 10-10-2014 , 06:00   Re: Add avatar player to MOTD
Reply With Quote #11

Quote:
Originally Posted by Dom72 View Post
Excuse me i have not said that, i put the API code of course but i do not have any matches anyway..

EDIT: lacked a hug at the end of the code, the page appears but nothing avatar showing..
As LambdaLambda posted you should _read_ what you're copying, the code I provided stores the avatar in the variable $avatar.. here's a hint
PHP Code:
<img src="<?php echo ?>">
Now what would you echo?

Last edited by SephirothSG; 10-10-2014 at 06:01.
SephirothSG is offline
Dom72
Junior Member
Join Date: Aug 2014
Old 10-10-2014 , 07:42   Re: Add avatar player to MOTD
Reply With Quote #12

When i put after <body> in php page,
PHP Code:
<img src="<?php echo ?>">
the page is white on motd ingame, when i put
PHP Code:
<img src="<?php echo $avatar ?>">
the page work, and i have a little icon with 3 colors point (red,blue,green)
probably missing or error icon..

thanks to help me, i appreciate
Dom72 is offline
Dom72
Junior Member
Join Date: Aug 2014
Old 10-22-2014 , 20:51   Re: Add avatar player to MOTD
Reply With Quote #13

Avatar works on motd but the page is displayed after 5 seconds, psychonic to say there must be links avatar caching, but I don't know how to do..

Anybody help me?

thanks..

Edit : i find the solution.. thanks to all for help

Last edited by Dom72; 10-22-2014 at 21:13.
Dom72 is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:11.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode