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