Raised This Month: $ Target: $400
 0% 

Help to X CTs Alives


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Xs-Chuki-Xs
Senior Member
Join Date: Jan 2010
Location: Argentina
Old 08-08-2010 , 01:54   Help to X CTs Alives
Reply With Quote #1

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 HudsynciMaxplayers

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=1i<=iMaxplayersi++) 
    {
       if(
get_user_team(i) == && is_user_alive(i)) 
       {
            
Team2++
        }
    }
    
    
set_hudmessage(002550.020.6306.012.0)
    
ShowSyncHudMsg(idHudsync"^nCT%s %d alive%s", (Players) >  Team2) ? "n" ""Players(), (Players() > Team2) ? "s" "")  

and errors:

PHP Code:
ErrorSyntax error in the expression, or invalid function call on line 28
Error
Invalid expressionassumed zero on line 28 
Xs-Chuki-Xs is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-08-2010 , 02:01   Re: Help to X CTs Alives
Reply With Quote #2

Code:
(Players) >  Team2)

Code:
(Players >  Team2)
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Xs-Chuki-Xs
Senior Member
Join Date: Jan 2010
Location: Argentina
Old 08-08-2010 , 02:49   Re: Help to X CTs Alives
Reply With Quote #3

thanks! now 1 error

in line

PHP Code:
ShowSyncHudMsg(idHudsync"^nCT%s %d alive%s", (Players >  Team2) ? "n" ""Players(), (Players() > Team2) ? "s" ""
error

PHP Code:
ErrorSyntax error in the expression, or invalid function call on line 27 
Xs-Chuki-Xs is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 08-08-2010 , 02:53   Re: Help to X CTs Alives
Reply With Quote #4

Code:
Players(), (Players() > Team2)

Code:
Players, (Players > Team2)
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
Xs-Chuki-Xs
Senior Member
Join Date: Jan 2010
Location: Argentina
Old 08-08-2010 , 02:58   Re: Help to X CTs Alives
Reply With Quote #5

, now other error

line

PHP Code:
ShowSyncHudMsg(idHudsync"^nCT%s %d alive%s", (Players >  Team2) ? "n" ""Players, (Players Team2) ? "s" ""
error

PHP Code:
ErrorSyntax error in the expression, or invalid function call on line 27 
Xs-Chuki-Xs is offline
Reply



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 00:16.


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