Raised This Month: $ Target: $400
 0% 

Why this not working ?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Awesome_man
Senior Member
Join Date: May 2014
Location: singapore
Old 01-02-2019 , 11:27   Re: Why this not working ?
Reply With Quote #9

Quote:
Originally Posted by eat1k View Post
Please, don't do operations in the same line...
Code:
new iPlayers[MAX_PLAYERS], iNum; get_players( iPlayers, iNum, "bh", "T" );
->
Code:
new iPlayers[MAX_PLAYERS], iNum; get_players( iPlayers, iNum, "bh", "TERRORIST" );
It's not working due to @OciXCrom said.
Also, if(!is_user_alive(iNum)) should be if(!is_user_alive(iPlayers[i])) and change return PLUGIN_HANDLED to continue;
In AMXX >= 1.8.3 you don't need to use get_user_name() because you can use that thing:
Code:
client_print(0, print_chat, "%n revived T'S", iIndex);
Anyways, it'll give errors because in your code you don't use "%s" in client_print().
PHP Code:
public Cmd_riIndexiLeveliCid 

if( !
cmd_accessiIndexiLeveliCid) ) 
    return 
PLUGIN_HANDLED
    
    new 
iPlayers[MAX_PLAYERS], iNum;
    
get_playersiPlayersiNum"bh""TERRORIST" ); 
    
    for( new 
0iNumi++ ) ExecuteHamBHam_CS_RoundRespawniPlayers[i] ); 
    
{
    if(!
is_user_alive(iPlayers[i]))
    {
        
        return 
PLUGIN_CONTINUE;
    }
    
    
    new 
sName[32]; get_user_nameiIndexsNamecharsmax(sName) ); 
    
client_print0print_chat"admin revived T'S");
    
    return 
PLUGIN_HANDLED
}


Show this error

PHP Code:
ErrorUndefined symbol "i" on line 58 
Awesome_man is offline
 



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 07:37.


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