Hi! Sorry for mi bad english.
I have a problem. Wanted to get Counter-Terrorist as many are alive. But at the same time I want in scrambled plural or singular if it is a CT.
Code:
PHP Code:
#include <amxmodx>
new Hudsync, iMaxplayers
public plugin_init() {
iMaxplayers = get_maxplayers()
Hudsync = CreateHudSyncObj()
}
public client_putinserver(id)
{
set_task(0.1, "Players", id,_,_,"b")
}
public Players(id) {
new Team2
for(new i=1; i<=iMaxplayers; i++)
{
if(get_user_team(i) == 2 && is_user_alive(i))
{
Team2++
}
}
set_hudmessage(0, 0, 255, 0.02, 0.63, 0, 6.0, 12.0)
ShowSyncHudMsg(id, Hudsync, "^nCT%s %d alive%s", (Players) > Team2) ? "n" : "", Players(), (Players() > Team2) ? "s" : "")
}
and errors:
PHP Code:
Error: Syntax error in the expression, or invalid function call on line 28
Error: Invalid expression, assumed zero on line 28