Sorry guys, but I can't find what the hell is wrong with this, here's the error from the server log:
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