Whenever i try to compile this code the compiler crashes i have no idea why.
Or the code is wrong? I couldn't test as i can't even compile the code.
Code:
/* Plugin generated by AMXX-Studio */
#include < amxmodx >
#include < amxmisc >
#define PLUGIN "Surf Help"
#define VERSION "1.0"
#define AUTHOR "Baws"
public plugin_init( )
{
register_plugin( PLUGIN, VERSION, AUTHOR )
register_clcmd( "say /surfhelp", "Cmd_SurfHelp" );
register_clcmd( "say_team /surfhelp", "Cmd_SurfHelp" );
}
public Cmd_SurfHelp( id )
{
new Motd[ 1056 ], Len;
Len = formatex( Motd, charsmax( Motd ), "<html><head><style type=^"text/css^">body{background:#000000;margin-left:8px;margin-top:0px;}</style></head><body>" );
Len += formatex( Motd[ Len ], charsmax( Motd ) - Len, "<p style=^"text-align: center;^"><span style=^"color:cdcccb;^">This video is brought to you by <em><strong>Baws</strong></em>.</span></p>^n" );
Len += formatex( Motd[ Len ], charsmax( Motd ) - Len, "<h3 style=^"text-align: center;^"><span style=^"color:d7d5d2;^"><strong>Advanced Surfing Help Video</strong></span></h3>^n" );
Len += formatex( Motd[ Len ], charsmax( Motd ) - Len, "<p style=^"text-align: center;^"><span style=^"color:cdcccb;^">Note: Loading time depends on your internet speed.</span></p>^n" );
Len += formatex( Motd[ Len ], charsmax( Motd ) - Len, "<p style=^"text-align: center;^"><span style=^"color:cdcccb;^">Make sure to follow these steps! Or you will end up in jail.</span></p>^n" );
formatex( Motd[ Len ], charsmax( Motd ) - Len, "</body></html>" );
Len = formatex( Motd, charsmax( Motd ), "<pre><center><object type=^"application/x-shockwave-flash^" data=^"http://allied-gamers.com/player.swf^" height=^"200^" width=^"500^" quality=^"high^"><param name=^"movie^" value=^"http://allied-gamers.com/player.swf^"><param name=^"FlashVars^" value=^"backcolor=0x000000&frontcolor=0xCCCCCC&lightcolor=0x996600&searchbar=false&autostart=true&repeat=never&shuffle=false&volume=50&file=http://www.youtube.com/watch?v=opdR6MVNIE4^"></object></EMBED></OBJECT></body></pre></html>" );
show_motd( id, Motd, "Advanced Surf Help" )
return PLUGIN_HANDLED;
}
__________________