Raised This Month: $ Target: $400
 0% 

ID error


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 05-23-2010 , 09:32   ID error
Reply With Quote #1

Error :
Quote:
\amxmodx\scripting\remaining.sma(83) : error 017:
undefined symbol "id"
PHP Code:
public ShowMessage( ) {
    new 
iPlayers32 ], iNumTEAMS ];
    
//get_players( iPlayers, iNum[ TE ], "ae", "TERRORIST" );
    
get_playersiPlayersiNumCT ], "ae""CT" );
 
    if( 
iNumTE ] > || iNumCT ] > ) {
        new 
iCvarsCVARS ];
 
        
iCvarsRED      ] = get_pcvar_numg_pCvarsRED      ] );
        
iCvarsGREEN    ] = get_pcvar_numg_pCvarsGREEN    ] );
        
iCvarsBLUE     ] = get_pcvar_numg_pCvarsBLUE     ] );
        
iCvarsLOCATION ] = get_pcvar_numg_pCvarsLOCATION ] );
 
        if( 
iCvarsLOCATION ] > sizeofg_flCoords ) - ) {
            
set_pcvar_numg_pCvarsLOCATION ], );
 
            
iCvarsLOCATION ] = 1;
        }
 
        
set_hudmessageiCvarsRED ], iCvarsGREEN ], iCvarsBLUE ], 
        
g_flCoordsiCvarsLOCATION ] ][ ], g_flCoordsiCvarsLOCATION ] ][ ], 0HUD_STAYHUD_STAY0.00.0);
 
        
//show_hudmessage( 0, "Players Remaining^nTE: %i^nCT: %i", iNum[ TE ], iNum[ CT ] );
 
new CsTeams:iTeam cs_get_user_team(id);
 if (
iTeam == CS_TEAM_T)
  {
        
show_hudmessage(0"Counter-Terrorists Remaining: %i"iNumCT ] );
  }
 }
    }

edgaras85 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-23-2010 , 09:32   Re: ID error
Reply With Quote #2

public ShowMessage(id) {

?
__________________
Retired.
Xalus is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 05-23-2010 , 09:42   Re: ID error
Reply With Quote #3

I tried that now
Quote:
amxmodx\scripting\remaining.sma(54) : error 088:
number of arguments does not match definition
edgaras85 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-23-2010 , 09:44   Re: ID error
Reply With Quote #4

were u seted showmessage() ?

Copy it.
__________________
Retired.
Xalus is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 05-23-2010 , 09:54   Re: ID error
Reply With Quote #5

PHP Code:
public FwdThinkiEntity ) {
    
ShowMessage( );
    
    
entity_set_floatiEntityEV_FL_nextthinkget_gametime( ) + DELAY );

edgaras85 is offline
Xalus
Veteran Member
Join Date: Dec 2009
Location: Belgium
Old 05-23-2010 , 10:11   Re: ID error
Reply With Quote #6

ShowMessage( iEntity );
__________________
Retired.
Xalus is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 05-23-2010 , 10:26   Re: ID error
Reply With Quote #7

Still not showing...
edgaras85 is offline
wrecked_
Veteran Member
Join Date: Jan 2010
Location: New York (GMT-5)
Old 05-23-2010 , 14:29   Re: ID error
Reply With Quote #8

You're copy+pasting and do not know what you're doing. This isn't the right place. Please don't ask for help via PM's anymore.
__________________
[ Paid Requests ]
DO NOT PM ME ABOUT BLOCKMAKER
NO PRIVATE SUPPORT
wrecked_ is offline
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 05-23-2010 , 15:01   Re: ID error
Reply With Quote #9

Quote:
Originally Posted by edgaras85 View Post
Error :

PHP Code:
public ShowMessage( ) {
    new 
iPlayers32 ], iNumTEAMS ];
    
//get_players( iPlayers, iNum[ TE ], "ae", "TERRORIST" );
    
get_playersiPlayersiNumCT ], "ae""CT" );
 
    if( 
iNumTE ] > || iNumCT ] > ) {
        new 
iCvarsCVARS ];
 
        
iCvarsRED      ] = get_pcvar_numg_pCvarsRED      ] );
        
iCvarsGREEN    ] = get_pcvar_numg_pCvarsGREEN    ] );
        
iCvarsBLUE     ] = get_pcvar_numg_pCvarsBLUE     ] );
        
iCvarsLOCATION ] = get_pcvar_numg_pCvarsLOCATION ] );
 
        if( 
iCvarsLOCATION ] > sizeofg_flCoords ) - ) {
            
set_pcvar_numg_pCvarsLOCATION ], );
 
            
iCvarsLOCATION ] = 1;
        }
 
        
set_hudmessageiCvarsRED ], iCvarsGREEN ], iCvarsBLUE ], 
        
g_flCoordsiCvarsLOCATION ] ][ ], g_flCoordsiCvarsLOCATION ] ][ ], 0HUD_STAYHUD_STAY0.00.0);
 
        
//show_hudmessage( 0, "Players Remaining^nTE: %i^nCT: %i", iNum[ TE ], iNum[ CT ] );
 
new CsTeams:iTeam cs_get_user_team(id);
 if (
iTeam == CS_TEAM_T)
  {
        
show_hudmessage(0"Counter-Terrorists Remaining: %i"iNumCT ] );
  }
 }
    }

What's the full code. I cannot help you if you don't provide more information.
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
edgaras85
Senior Member
Join Date: Mar 2010
Location: Lithuania
Old 05-23-2010 , 15:07   Re: ID error
Reply With Quote #10

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#define DELAY 0.5
#define HUD_STAY DELAY + 0.1
enum _:CVARS {
   
RED,
   
GREEN,
   
BLUE,
   
LOCATION
};
enum _:TEAMS {
   
TE,
   
CT
};
new 
g_pCvarsCVARS ];
new const 
Float:g_flCoords[ ][ ] = {
   { 
0.02, -1.0 },
   { 
0.100.40 },
   { 
0.280.00 },
   { 
0.570.00 },
   { 
0.570.45 },
   { 
0.570.78 },
   { 
0.270.78 },
   { 
0.010.78 },
   { 
0.310.36 }
}
public 
plugin_init( ) {
   
register_plugin"Players Remaining""1.0""xPaw" );
   
   
g_pCvarsRED      ] = register_cvar"amx_pr_red",        "255" );
   
g_pCvarsGREEN    ] = register_cvar"amx_pr_green",      "0" );
   
g_pCvarsBLUE     ] = register_cvar"amx_pr_blue",       "0" );
   
g_pCvarsLOCATION ] = register_cvar"amx_pr_location",   "5" );
   
   new 
iEntity create_entity"info_target" );
   
   if( 
is_valid_entiEntity ) ) {
      
entity_set_stringiEntityEV_SZ_classname"PlayersRemainThinker" );
      
entity_set_floatiEntityEV_FL_nextthinkget_gametime( ) + DELAY );
      
      
register_think"PlayersRemainThinker""FwdThink" );
   } else
   
set_taskDELAY"ShowMessage"___"b" );
}
public 
FwdThinkiEntity ) {
   
ShowMessageiEntity );
   
   
entity_set_floatiEntityEV_FL_nextthinkget_gametime( ) + DELAY );
}
public 
ShowMessageid ) {
   new 
iPlayers32 ], iNumTEAMS ];
   
//get_players( iPlayers, iNum[ TE ], "ae", "TERRORIST" );
   
get_playersiPlayersiNumCT ], "ae""CT" );
   
   if( 
iNumTE ] > || iNumCT ] > ) {
      new 
iCvarsCVARS ];
      
      
iCvarsRED      ] = get_pcvar_numg_pCvarsRED      ] );
      
iCvarsGREEN    ] = get_pcvar_numg_pCvarsGREEN    ] );
      
iCvarsBLUE     ] = get_pcvar_numg_pCvarsBLUE     ] );
      
iCvarsLOCATION ] = get_pcvar_numg_pCvarsLOCATION ] );
      
      if( 
iCvarsLOCATION ] > sizeofg_flCoords ) - ) {
         
set_pcvar_numg_pCvarsLOCATION ], );
         
         
iCvarsLOCATION ] = 1;
      }
      
      
set_hudmessageiCvarsRED ], iCvarsGREEN ], iCvarsBLUE ], 
      
g_flCoordsiCvarsLOCATION ] ][ ], g_flCoordsiCvarsLOCATION ] ][ ], 0HUD_STAYHUD_STAY0.00.0);
      
      
//show_hudmessage( 0, "Players Remaining^nTE: %i^nCT: %i", iNum[ TE ], iNum[ CT ] );
      
if(is_user_connected(id)) {
         new 
CsTeams:iTeam cs_get_user_team(id);
         if (
iTeam == CS_TEAM_T)
         {
            
show_hudmessage(0"Counter-Terrorists Remaining: %i"iNumCT ] );
         }
      }
   }

edgaras85 is offline
Reply


Thread Tools
Display Modes

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 05:26.


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