View Single Post
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 10-06-2009 , 10:01   Re: Help Fixing Errors
Reply With Quote #4

Quote:
Originally Posted by 3Di View Post
3. Change iPlayers to id.
4. get_players(id, iT, "ae", "TERRORIST");
Thats wrong.

EDIT:
PHP Code:
public SGsLastRequestid ) {
    if( !
is_user_aliveid ) || cs_get_user_teamid ) != CS_TEAM_T )
        return 
PLUGIN_CONTINUE;
    
    new 
iPlayers32 ], iNum;
    
get_playersiPlayersiT"ae""TERRORIST" );
    
    if( 
iNum == ) {
        new 
menu menu_create"\SGs Last Request:""menu_handler" );
        
        
menu_additemmenu"Knife fight""1");
        
menu_additemmenu"Shot for shot""2");
        
menu_additemmenu"Gun toss""3");
        
menu_additemmenu"Spray Contest""4");
        
        
menu_displayidmenu);
    }
    
    return 
PLUGIN_CONTINUE;

__________________

Last edited by xPaw; 10-06-2009 at 10:11.
xPaw is offline