Raised This Month: $ Target: $400
 0% 

Stupid Error, Where is it?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-17-2005 , 15:01   Stupid Error, Where is it?
Reply With Quote #1

Sorry guys, but I can't find what the hell is wrong with this, here's the error from the server log:

Quote:
<STEAM_0:1:2037446><>" entered the game
L 04/17/2005 - 14:57:58: "Smooth Criminal | Tunes<10><STEAM_0:1:2037446><>" joined team "CT"
L 04/17/2005 - 14:57:59: [AMXX] Run time error 25 (parameter error) on line 289 (plugin "ma_knifechallenge.amxx").
L 04/17/2005 - 14:57:59: String formatted incorrectly - parameter 4 (total 3)
L 04/17/2005 - 14:57:59: [AMXX] Debug Trace =>
L 04/17/2005 - 14:57:59: [AMXX] [0] Line 289, File "ma_knifechallenge.sma"
L 04/17/2005 - 14:57:59: [AMXX] [1] Line 305, File "ma_knifechallenge.sma"
Here's the code:

Code:
public CheckTeams (){ //line 278         //vars     new CTs[32], Ts[32], CTName[32], TName[32]     new CTCount, TCount         //get CTs     get_players(CTs, CTCount, "ae", "CT")     //get Ts     get_players(Ts, TCount, "ae", "CT")     //debug     client_print(0, print_center, "CTs %i v Ts%i, CTCount, TCount")//line 289         //if it is 1 v 1     if((CTCount == 1) && (TCount == 1))     {         //get user names         get_user_name(CTs[0], CTName, 31)         get_user_name(Ts[0], TName, 31)                 //Alert them to knife challenge option         client_print(CTs[0], print_center, "There is only 1 Player left on each team /n Knife a wall to challenge %s to a knife duel!, TName")         client_print(Ts[0], print_center, "There is only 1 Player left on each team /n Knife a wall to challenge %s to a knife duel!, CTName")     } }

Line 305 is the procedure call. This has got to be the stupidst thing, somebody please let me know what's wrong. THanx
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-17-2005 , 15:04  
Reply With Quote #2

Code:
client_print(0, print_center, "CTs %i v Ts%i, CTCount, TCount")//line 289 // Needs another "
Same with the rest.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-17-2005 , 15:05  
Reply With Quote #3

um, where? there is one on both sides of the string, I don't get it.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
v3x
Veteran Member
Join Date: Oct 2004
Location: US
Old 04-17-2005 , 15:05  
Reply With Quote #4

Yea, sorry bout that.. I must be color-blind.. I edited my post.
__________________
What am I doing these days? Well, I run my own Rust server. It's heavily modded. If you'd like to join, the ip is 167.114.101.67:28116

I also created a website called Rust Tools. It will calculate and tell you the raw amounts of resources needed to craft items.
v3x is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-17-2005 , 15:07  
Reply With Quote #5

Yeah, np... same. I think the error is on this line (obviously)

client_print(0, print_center, "CTs %i v Ts%i, CTCount, TCount")//line 289

but I don't get it, there is a quote on both sides of the string, what's wrong?
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 04-17-2005 , 15:13  
Reply With Quote #6

Code:
client_print(0, print_center, "CTs %i v Ts %i", CTCount, TCount)
__________________
twistedeuphoria is offline
BioHazardousWaste
Senior Member
Join Date: Apr 2005
Location: Ontario, Canada =)
Old 04-17-2005 , 22:21  
Reply With Quote #7

Yeah, thanx guys... didn't know the vars went after the quotes.. only started the language yesterday . Thanx for the help, and sorry for wasting your time.
__________________
"What then is truth? Truths are illusions which we have forgotten are illusions - they are metaphors that have become worn out... this (truth) is the duty to lie according to a fixed convention.

-Friedrich Nietzsche
BioHazardousWaste is offline
Send a message via MSN to BioHazardousWaste
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 09:59.


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