AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Stupid Error, Where is it? (https://forums.alliedmods.net/showthread.php?t=12531)

BioHazardousWaste 04-17-2005 15:01

Stupid Error, Where is it?
 
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

v3x 04-17-2005 15:04

Code:
client_print(0, print_center, "CTs %i v Ts%i, CTCount, TCount")//line 289 // Needs another "
Same with the rest.

BioHazardousWaste 04-17-2005 15:05

um, where? :? there is one on both sides of the string, I don't get it.

v3x 04-17-2005 15:05

Yea, sorry bout that.. I must be color-blind.. I edited my post.

BioHazardousWaste 04-17-2005 15:07

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?

twistedeuphoria 04-17-2005 15:13

Code:
client_print(0, print_center, "CTs %i v Ts %i", CTCount, TCount)

BioHazardousWaste 04-17-2005 22:21

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.


All times are GMT -4. The time now is 09:59.

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