Raised This Month: $51 Target: $400
 12% 

[CSTRIKE] Invalid player 3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
shadow728988
Member
Join Date: Sep 2017
Old 10-07-2017 , 09:25   [CSTRIKE] Invalid player 3
Reply With Quote #1

Code:
L 10/03/2017 - 19:51:30: Plugin called menu_display when item=MENU_EXIT
L 10/03/2017 - 19:51:30: [AMXX] Displaying debug trace (plugin "pub_war_agz.amxx", version "1.0")
L 10/03/2017 - 19:51:30: [AMXX] Run time error 10: native error (native "menu_display")
L 10/03/2017 - 19:51:30: [AMXX]    [0] pub_war_agz.sma::LetsSecondChoosePlayers (line 1404)
L 10/03/2017 - 19:51:30: [AMXX]    [1] pub_war_agz.sma::GetMatchMenu (line 499)
my server is crashing constantly and the logs show these errors.
Any solution to this please? Thanks

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>
#include <fakemeta>
#include <hamsandwich>
// MENU TO CHOOSE PLAYERS !!!
public LetsSecondChoosePlayers(id)
       
{


    new 
players[32], count;     
    
get_players(playerscount,"eh","SPECTATOR"); 
    

    if(
count 0)
    if(
is_user_connected(id) && !is_user_alive(id))
    {
        new 
iChoosePlayers LetsSecondChoosePlayersMenuid"Choose A player.""LetsSecondChoosePlayersHandler" );
        
menu_setpropiChoosePlayersMPROP_NUMBER_COLOR"\y" );
        
menu_displayidiChoosePlayers );

        return 
PLUGIN_HANDLED;
    } 
shadow728988 is offline
CrazY.
Veteran Member
Join Date: May 2015
Location: SP, Brazil
Old 10-07-2017 , 13:45   Re: [CSTRIKE] Invalid player 3
Reply With Quote #2

Quote:
Plugin called menu_display when item=MENU_EXIT
__________________








CrazY. is offline
DjSoftero
Veteran Member
Join Date: Nov 2014
Location: Lithuania
Old 10-07-2017 , 14:32   Re: [CSTRIKE] Invalid player 3
Reply With Quote #3

i think your menu lacks items in it
__________________
retired chump
DjSoftero is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-07-2017 , 16:38   Re: [CSTRIKE] Invalid player 3
Reply With Quote #4

its still not a reason to crash....

show this function...

LetsSecondChoosePlayersMenu


and btw this condition has no action... (
PHP Code:
 if(count 0
)
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-07-2017 at 16:39.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
shadow728988
Member
Join Date: Sep 2017
Old 10-08-2017 , 00:56   Re: [CSTRIKE] Invalid player 3
Reply With Quote #5

PHP Code:
LetsSecondChoosePlayersMenu(id, const szMenuTitle[], const szMenuHandler[])
{
    new 
iChoosePlayers menu_createszMenuTitleszMenuHandler );
    new 
iPlayers[32], iNumiPlayerszPlayerName[32], szUserId[32];
    
get_playersiPlayersiNum"h" );

    for(new 
0;i<iNum;i++)
    {
        
iPlayer iPlayers[i];    
 
        
//Add user in the menu if - CONNECTED and TEAM IS T.
        
if(get_user_team(iPlayer) == )
        {
             
            
get_user_nameiPlayerszPlayerNamecharsmaxszPlayerName ) );

            
formatexszUserIdcharsmaxszUserId ), "%d"get_user_useridiPlayer ) );
            
menu_additemiChoosePlayersszPlayerNameszUserId);

        }
      
        
    }
    return 
iChoosePlayers;

shadow728988 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 13:01.


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