Raised This Month: $ Target: $400
 0% 

Plugin: welcomemsg


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
aRved!
Junior Member
Join Date: Mar 2004
Old 04-21-2004 , 12:13   Plugin: welcomemsg
Reply With Quote #1

Ok i´ll try it in english
I have try to show my own html page with this plugin but now i get a runtime error 3!
Perhabs u have an idea to fix this?

Runtime Error:
Code:
 L 04/20/2004 - 18:37:54: [AMXX] Run time error 3 on line 72 (task "0") (plugin "welcomemsg.amx"
Plugin Code:
Code:
/* AMX Mod X *   Welcome Message Plugin * * by the AMX Mod X Development Team *  originally developed by OLO * * This file is part of AMX Mod X. * * *  This program is free software; you can redistribute it and/or modify it *  under the terms of the GNU General Public License as published by the *  Free Software Foundation; either version 2 of the License, or (at *  your option) any later version. * *  This program is distributed in the hope that it will be useful, but *  WITHOUT ANY WARRANTY; without even the implied warranty of *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU *  General Public License for more details. * *  You should have received a copy of the GNU General Public License *  along with this program; if not, write to the Free Software Foundation, *  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * *  In addition, as a special exception, the author gives permission to *  link the code of this program with the Half-Life Game Engine ("HL *  Engine") and Modified Game Libraries ("MODs") developed by Valve, *  L.L.C ("Valve"). You must obey the GNU General Public License in all *  respects for all of the code used other than the HL Engine and MODs *  from Valve. If you modify this file, you may extend this exception *  to your version of the file, but you are not obligated to do so. If *  you do not wish to do so, delete this exception statement from your *  version. */ #include <amxmodx> #include <amxmisc> #define MOTD_LENGTH 4096 // Settings (comment unwanted options) //#define SHOW_MODS //#define READ_FROM_FILE #define SHOW_TIME_AND_IP new g_cstrikeRunning #if defined READ_FROM_FILE new g_motdFile[64] #endif public plugin_init() {   register_plugin("Welcome Message","0.16","AMXX Dev Team")   g_cstrikeRunning = is_running("cstrike")   /*get_configsdir(g_motdFile, 63);   format(g_motdFile, 63, "%s/conmotd.txt", g_motdFile);*/ } public plugin_cfg() {   set_cvar_string("motdfile","") } public client_putinserver(id) {   new param[1]   param[0] = id   set_task(2.5,"alt_motd",0,param,1)  // Line 72 :) } public alt_motd(param[]) {   new id = param[0]   new motdBody[MOTD_LENGTH], name[32], hostname[64], nextmap[32], mapname[32]   get_cvar_string("hostname",hostname,63)   get_user_name(id,name,31)   get_mapname(mapname,31)   get_cvar_string("amx_nextmap",nextmap,31)   new len = copy(motdBody,MOTD_LENGTH,"<html><head><style type=^"text/css^">body{background:#000000;color:#FFB000;margin-left:8px;margin-top:8px;}")   len += copy(motdBody[len],MOTD_LENGTH,"hr{color:#FFB000;border:0px;}ul{margin-top:2px;margin-bottom:2px;}hr{margin-top:8px;margin-bottom:8px;}</style></head><body>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<table cellspacing=0 cellpadding=0 border=0 width=100% height=100%><tr height=124><td><table cellspacing=0 cellpadding=0 width=100% height=124 border=0>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<tr><td width=159><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/h_ta.jpg^" border=0></td><td width=365>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/h_left.jpg^" border=0></td><td background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/h_bg.jpg^"> </td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=232><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/h_right.jpg^" border=0></td></tr></table></td></tr><tr height=51><td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<table cellspacing=0 cellpadding=0 width=100% height=51 border=0><tr><td width=8><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_left.jpg^" border=0></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=60 background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_bg.jpg^"> </td><td width=59><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_btn_l.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=400 background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_btn_bg.jpg^"  align=center valign=bottom><table cellspacing=10 cellpadding=0 border=0>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<tr><td><a href=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/motd.php?action=motddb^" border=0><img src=^"images/ta/btn_news.jpg^" border=0></a>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<a href=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/motd.php?action=motddbrules^" border=0><img src=^"images/ta/btn_rules.jpg^" border=0></a>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<a href=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/motd.php?action=motddbinfo^" border=0><img src=^"images/ta/btn_info.jpg^" border=0></a>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<a href=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/motd.php?action=motddbsounds^" border=0><img src=^"images/ta/btn_sounds.jpg^" border=0></a>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<a href=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.info/stats/top15.php^" border=0><img src=^"images/ta/btn_top15.jpg^" border=0></a>")   len += copy(motdBody[len],MOTD_LENGTH-len,"</td></tr></table></td><td width=61><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_btn_r.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_bg.jpg^"> </td><td width=9><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/bl_right.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"</tr></table></td></tr><tr><td><table cellspacing=0 cellpadding=0 width=100% height=100% border=0><tr>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=22 height=21><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_t_l_s.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_t_m_bg.jpg^"><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/space.gif^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=18 height=21><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_t_r_s.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"</tr><tr><td width=22 background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_l_s_bg.jpg^" valign=top align=center>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/space.gif^"></td><td valign=top><font size=2 color=^"#5E4E4E^">")   len += format(motdBody[len],MOTD_LENGTH-len,"Willkommen %s, in der %s<ul>",name,hostname) #if defined SHOW_TIME_AND_IP   new stime[64],ip[32]   get_time("%A %B %d, %Y - %H:%M:%S",stime,63)   get_user_ip(id,ip,31)   len += format(motdBody[len],MOTD_LENGTH-len,"[*]Aktuelle Uhrzeit: %s",stime)   len += format(motdBody[len],MOTD_LENGTH-len,"[*]Deine IP ist: %s",ip) #endif   new maxplayers = get_cvar_num("sv_visiblemaxplayers")   if ( maxplayers < 0 ) maxplayers = get_maxplayers()   len += format(motdBody[len],MOTD_LENGTH-len,"[*]Aktuelle Spielerzahl: %d/%d",get_playersnum(),maxplayers)   len += format(motdBody[len],MOTD_LENGTH-len,"[*]Aktuelle Map: %s^nNächste Map: %s",mapname,nextmap)   // Time limit and time remaining   new Float:mp_timelimit = get_cvar_float("mp_timelimit")   if (mp_timelimit){     new timeleft = get_timeleft()     if (timeleft > 0)       len += format(motdBody[len],MOTD_LENGTH-len,"[*]Verbleibende Zeit auf der Map: %d:%02d von %.0f minutes",timeleft / 60, timeleft % 60, mp_timelimit)   }   else{     len += copy(motdBody[len],MOTD_LENGTH-len,"[*]Kein Zeitlimit")   }   // C4 and FF   if ( g_cstrikeRunning ){     len += format(motdBody[len],MOTD_LENGTH-len,"[*]Friendly Fire ist %s",get_cvar_num("mp_friendlyfire") ? "AN" : "AUS")     len += format(motdBody[len],MOTD_LENGTH-len,"[*]C4 Timer steht auf %.0f sek.",get_cvar_float("mp_c4timer"))   }   len += copy(motdBody[len],MOTD_LENGTH-len,"[/list]")   // Server Mods #if defined SHOW_MODS   new mod_ver[32]   len += copy(motdBody[len],MOTD_LENGTH-len," Server mods:<ul>")   get_cvar_string("amxmodx_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AMX Mod X %s",mod_ver)   get_cvar_string("statsme_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]StatsMe %s",mod_ver)   get_cvar_string("clanmod_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]ClanMod %s",mod_ver)   get_cvar_string("admin_mod_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AdminMod %s",mod_ver)   get_cvar_string("chicken_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]Chicken %s",mod_ver)   get_cvar_string("csguard_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]CSGuard %s",mod_ver)   get_cvar_string("hlguard_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]HLGuard %s",mod_ver)   get_cvar_string("plbot_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]PLBot %s",mod_ver)   get_cvar_string("booster_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]HL-Booster %s",mod_ver)   get_cvar_string("axn_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AXN %s",mod_ver)   get_cvar_string("bmx_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]BMX %s",mod_ver)   get_cvar_string("cdversion",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]Cheating-Death %s in %s Mode",     mod_ver, get_cvar_num("cdrequired") ? "Required" : "Optional" )   get_cvar_string("atac_version",mod_ver,31)   if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]ATAC %s",mod_ver)   len += copy(motdBody[len],MOTD_LENGTH-len,"[/list]") #endif   // Info. from custom file #if defined READ_FROM_FILE   if (file_exists(g_motdFile)) {     new message[192], len2, line = 0     len += format(motdBody[len],MOTD_LENGTH-len,"<hr noshade>")     while(read_file(g_motdFile,line++,message,191,len2))       len += copy(motdBody[len],MOTD_LENGTH-len,message)   } #endif   len += copy(motdBody[len],MOTD_LENGTH-len,"</font></td><td width=18 background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_r_s_bg.jpg^" valign=top align=center>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/space.gif^"></td></tr><tr>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=22 height=20><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_b_l_s.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td background=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_b_m_bg.jpg^"><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/space.gif^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"<td width=18 height=20><img src=^"http:/")   len += copy(motdBody[len],MOTD_LENGTH-len,"/www.teamarab.de/start/images/ta/m_b_r_s.jpg^"></td>")   len += copy(motdBody[len],MOTD_LENGTH-len,"</tr></table></td></tr></table>")   len += copy(motdBody[len],MOTD_LENGTH-len,"</body></html>")   show_motd(id,motdBody) }


I hope anybody could help me
Thanxx .. sorry for my worst english ..
aRved! is offline
decemberx
Junior Member
Join Date: Apr 2004
Location: CT
Old 04-22-2004 , 09:47   alright man
Reply With Quote #2

Hey man its cool, we all started somewhere....

ok check this out.



Code:
new motdBody[MOTD_LENGTH], name[32], hostname[64], nextmap[32], mapname[32]
Thats where your error is, line 72.....check around....mess with it, see if you can get it working...I bet Andreas can help us out here....
__________________
DecemberX - "Fckin Sknks"
decemberx is offline
Send a message via AIM to decemberx
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-22-2004 , 12:56  
Reply With Quote #3

WOW!! An array of size 4096???

Maybe that is too large, try adding this to the top of your source code:

#pragma dynamic 20000


Or maybe even play with the number 20000 a bit, it should help!

Also, I think MOTD windows have a maximum length of characters allowed, so maybe you've exceeded that limit?
xeroblood is offline
Send a message via MSN to xeroblood
aRved!
Junior Member
Join Date: Mar 2004
Old 04-26-2004 , 08:11  
Reply With Quote #4

thanx i will try this at home! ..
aRved! is offline
aRved!
Junior Member
Join Date: Mar 2004
Old 04-28-2004 , 12:58  
Reply With Quote #5

yeah it work, but the MOTD window has a limit of characters!

How can i combine the html code from my motd and this nice plugin
aRved! is offline
HotRod
Junior Member
Join Date: Apr 2004
Location: Norway
Old 04-28-2004 , 15:02  
Reply With Quote #6

While you guys are on the roll... Could you check out what might be wrong with my welcomemsg.sma file...

I can't get conmotd.txt to show on the server...
Only showing in the window is some weird letters, squares and a few @, and this is nothing I wrote...

I tried to tun the file trough the online compiler and it say that there is 4 errors in it.. But not what errors...

Here is the code:
Code:
/* AMX Mod X
*   Welcome Message Plugin
*
* by the AMX Mod X Development Team
*  originally developed by OLO
*
* This file is part of AMX Mod X.
*
*
*  This program is free software; you can redistribute it and/or modify it
*  under the terms of the GNU General Public License as published by the
*  Free Software Foundation; either version 2 of the License, or (at
*  your option) any later version.
*
*  This program is distributed in the hope that it will be useful, but
*  WITHOUT ANY WARRANTY; without even the implied warranty of
*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
*  General Public License for more details.
*
*  You should have received a copy of the GNU General Public License
*  along with this program; if not, write to the Free Software Foundation,
*  Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*  In addition, as a special exception, the author gives permission to
*  link the code of this program with the Half-Life Game Engine ("HL
*  Engine") and Modified Game Libraries ("MODs") developed by Valve,
*  L.L.C ("Valve"). You must obey the GNU General Public License in all
*  respects for all of the code used other than the HL Engine and MODs
*  from Valve. If you modify this file, you may extend this exception
*  to your version of the file, but you are not obligated to do so. If
*  you do not wish to do so, delete this exception statement from your
*  version.
*/

#include <amxmodx>
#include <amxmisc>

#define MOTD_LENGTH 1024

// Settings (comment unwanted options)
#define SHOW_MODS
#define READ_FROM_FILE
//#define SHOW_TIME_AND_IP

new g_cstrikeRunning

#if defined READ_FROM_FILE
new g_motdFile[64]
#endif

public plugin_init()
{
  register_plugin("Welcome Message","0.16","AMXX Dev Team")
  g_cstrikeRunning = is_running("cstrike")
  get_configsdir(g_motdFile, 63);
  format(g_motdFile, 63, "%s/conmotd.txt", g_motdFile);
}

public plugin_cfg()
{
  set_cvar_string("motdfile","")
}

public client_putinserver(id) {
  new param[1]
  param[0] = id
  set_task(2.5,"alt_motd",0,param,1)
}

public alt_motd(param[]) {
  new id = param[0]
  new motdBody[MOTD_LENGTH], name[32], hostname[64], nextmap[32], mapname[32]

  get_cvar_string("hostname",hostname,63) 
  get_user_name(id,name,31)
  
  get_mapname(mapname,31)
  get_cvar_string("amx_nextmap",nextmap,31)

  new len = copy(motdBody,MOTD_LENGTH,"<html><head><style type=^"text/css^">body{background:#000000;color:#FFB000;margin-left:8px;margin-top:8px;}")
  len += copy(motdBody[len],MOTD_LENGTH,"hr{color:#FFB000;border:0px;}ul{margin-top:2px;margin-bottom:2px;}hr{margin-top:8px;margin-bottom:8px;}</style></head><body>")
  len += format(motdBody[len],MOTD_LENGTH-len,"Hello %s, welcome to %s<ul>",name,hostname)
  
#if defined SHOW_TIME_AND_IP  
  new stime[64],ip[32]
  get_time("%A %B %d, %Y - %H:%M:%S",stime,63)
  get_user_ip(id,ip,31)
  len += format(motdBody[len],MOTD_LENGTH-len,"[*]Today is %s",stime)
  len += format(motdBody[len],MOTD_LENGTH-len,"[*]You are playing from: %s",ip)
#endif

  new maxplayers = get_cvar_num("sv_visiblemaxplayers")
  if ( maxplayers < 0 ) maxplayers = get_maxplayers()
  len += format(motdBody[len],MOTD_LENGTH-len,"[*]Players on server: %d/%d",get_playersnum(),maxplayers)
  len += format(motdBody[len],MOTD_LENGTH-len,"[*]Current map: %s, Next map: %s",mapname,nextmap)
  
  // Time limit and time remaining
  new Float:mp_timelimit = get_cvar_float("mp_timelimit")
  if (mp_timelimit){
    new timeleft = get_timeleft()
    if (timeleft > 0)
      len += format(motdBody[len],MOTD_LENGTH-len,"[*]Time Left: %d:%02d of %.0f minutes",timeleft / 60, timeleft % 60, mp_timelimit)
  }
  else{
    len += copy(motdBody[len],MOTD_LENGTH-len,"[*]No time limit")
  }

  // C4 and FF
  if ( g_cstrikeRunning ){
    len += format(motdBody[len],MOTD_LENGTH-len,"[*]Friendly fire is %s",get_cvar_num("mp_friendlyfire") ? "ON" : "OFF")
    len += format(motdBody[len],MOTD_LENGTH-len,"[*]C4 timer is set to %.0f sec.",get_cvar_float("mp_c4timer"))
  }
  len += copy(motdBody[len],MOTD_LENGTH-len,"[/list]")
        
  // Server Mods
#if defined SHOW_MODS
  new mod_ver[32]
  len += copy(motdBody[len],MOTD_LENGTH-len,"
Server mods:<ul>")
  get_cvar_string("amxmodx_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AMX Mod X %s",mod_ver)    
  get_cvar_string("statsme_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]StatsMe %s",mod_ver)
  get_cvar_string("clanmod_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]ClanMod %s",mod_ver)
  get_cvar_string("admin_mod_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AdminMod %s",mod_ver)
  get_cvar_string("chicken_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]Chicken %s",mod_ver)
  get_cvar_string("csguard_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]CSGuard %s",mod_ver)
  get_cvar_string("hlguard_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]HLGuard %s",mod_ver)
  get_cvar_string("plbot_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]PLBot %s",mod_ver)
  get_cvar_string("booster_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]HL-Booster %s",mod_ver)
  get_cvar_string("axn_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]AXN %s",mod_ver)
  get_cvar_string("bmx_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]BMX %s",mod_ver)
  get_cvar_string("cdversion",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]Cheating-Death %s in %s Mode",
    mod_ver, get_cvar_num("cdrequired") ? "Required" : "Optional" )
  get_cvar_string("atac_version",mod_ver,31)
  if (mod_ver[0]) len += format(motdBody[len],MOTD_LENGTH-len,"[*]ATAC %s",mod_ver)
  len += copy(motdBody[len],MOTD_LENGTH-len,"[/list]")
#endif

  // Info. from custom file
#if defined READ_FROM_FILE
  if (file_exists(g_motdFile)) {
    new message[192], len2, line = 0
    len += format(motdBody[len],MOTD_LENGTH-len,"<hr noshade>")
    while(read_file(g_motdFile,line++,message,191,len2))
      len += copy(motdBody[len],MOTD_LENGTH-len,message)
  }
#endif
  len += copy(motdBody[len],MOTD_LENGTH-len,"</body></html>")
  show_motd(id,motdBody)
}
Please help me... I can't figure this on my own.
HotRod is offline
Send a message via MSN to HotRod
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-28-2004 , 16:18  
Reply With Quote #7

I just compiled that and it compiled fine... Maybe the online Compiler doesn't like it, but the one that comes with AMXX works fine..

xeroblood is offline
Send a message via MSN to xeroblood
Reply


Thread Tools
Display Modes

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 10:59.


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