I've updated the code insteand of using Meta Refresh now i'm using iFrame, the webpage works scrolling, but the same problems appear .
1. The window is zoomed(means is too big) and all i can see on gametracker is the player NAME .
2. Some users not even see the gametracker they got errors , white MOTD and their output is only "-107" .
Does someone know why those thigns happening ?
PHP Code:
#include <amxmodx>
#include <amxmisc>
new const Server_Ip [] = "server-ip-here";
public plugin_init( )
{
register_plugin( "GameTracker Ore", "1.0", "Crax0r" );
register_clcmd( "say /playedtime", "Cmd_Ore" );
register_clcmd( "say .playedtime", "Cmd_Ore" );
register_clcmd( "amx_playedtime", "Cmd_PlayedTime" );
}
public Cmd_Ore( id )
{
new szName[32], szGameTracker[192];
get_user_name( id, szName, charsmax(szName) );
formatex( szGameTracker, charsmax(szGameTracker), "https://www.gametracker.com/player/%s/%s/", szName, Server_Ip );
new szBuffer[192];
formatex( szBuffer, charsmax(szBuffer), \
"<html><head><iframe src=^"%s^" style=^"height:100%%;width:100%%^"> </iframe> </head> </html>", \
szGameTracker );
show_motd( id, szBuffer );
}
public Cmd_PlayedTime( id )
{
new szArgs[32], szBuffer[192], szGameTracker[192];
read_argv( 1, szArgs, charsmax(szArgs) );
if( !szArgs[ 0 ] )
{
client_print( id, print_console, "amx_playedtime <Name of the player>" );
return PLUGIN_HANDLED;
}
new targetid = cmd_target( id, szArgs, CMDTARGET_NO_BOTS );
if( !targetid )
{
client_print( id, print_console, "The player doesnt exist!" );
return PLUGIN_HANDLED;
}
formatex( szGameTracker, charsmax(szGameTracker), "https://www.gametracker.com/player/%s/%s/", szArgs, Server_Ip );
formatex( szBuffer, charsmax(szBuffer), \
"<html><head><iframe src=^"%s^" style=^"height:100%%;width:100%%^"> </iframe> </head> </html>", \
szGameTracker );
show_motd( id, szBuffer );
return PLUGIN_HANDLED;
}
__________________