Raised This Month: $ Target: $400
 0% 

This is bugging me...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
hellraser
Member
Join Date: Jul 2004
Old 04-05-2005 , 15:06   This is bugging me...
Reply With Quote #1

Hey all,sup ?

I need some help here....
I'm using this code to display a short motd:
Code:
...
new len = 1300 
new buffer[1301] 
new n = 0 

n += copy( buffer[n],len-n,"<p align=^"center^"><font face=^"Verdana^"><span style=^"font-size:8pt;^">%s vs. %s
</span></font></p>",team_1,team_2)
...
And when compiling i get the following error:
Quote:
warning 202: number of arguments does not match definition
team_1 & team_2 are defined...

I'm sure it's something easy i didn't think of and i can't figure it out so if someone would mind helping )

Thx guys!
hellraser is offline
xeroblood
BANNED
Join Date: Mar 2004
Location: Toronto, Canada
Old 04-05-2005 , 16:23  
Reply With Quote #2

use format() not copy()

Just change the function name, the syntax looks fine..
xeroblood is offline
Send a message via MSN to xeroblood
hellraser
Member
Join Date: Jul 2004
Old 04-05-2005 , 16:45  
Reply With Quote #3

Thx m8 works great ;)
hellraser is offline
hellraser
Member
Join Date: Jul 2004
Old 04-07-2005 , 15:26  
Reply With Quote #4

hey again i modified the html code to this

Code:
n += format( buffer[n],len-n,"<td width=^"433^" colspan=^"2^"><span style=^"font-size:22pt;^"><font face=^"Verdana^" color=^"#FFCC00^">%s</font></span><font face=^"Verdana^"><span style=^"font-size:22pt;^"> </span><span style=^"font-size:14pt;^">vs.</span><span style=^"font-size:22pt;^"> </span></font><span style=^"font-size:22pt;^"><font face=^"Verdana^" color=^"#FFCC00^">%s</font></span><font face=^"Verdana^"><span style=^"font-size:22pt;^">
</span></font></td>",team_1,team_2)
But now i get the following error:
Quote:
source/xtreme.sma(1330) : error 075: input line too long (after substitutions)
I tried modifying
Code:
		new len = 1300 
		new buffer[1301]
to a value like 2048 but didn't change anything...

Please help! Thanks
hellraser 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 09:57.


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