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

Undefined Symbol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-19-2014 , 17:23   Undefined Symbol
Reply With Quote #1

Finally, I have it. Timer_ChooseTeamMenu is recognized as undefined?

PHP Code:
hChooseTeamMenuTimer CreateTimer(0.5Timer_ChooseTeamMenu_TIMER_DATA_HNDL_CLOSE);

public 
Action:Timer_ChooseTeamMenu(Handle:hTimer)
{
    for (new 
vWho 1vWho <= MAXPLAYERS+1vWho++)
    {
        if(
GetClientTeam(vWho) == TEAM_SPECTATORS)
        {
            
bTempBlockTeams[vWho] = false;

            
FakeClientCommand(vWho"chooseteam");
        }
    }


Last edited by QOOOOOOOOQ; 01-19-2014 at 17:28.
QOOOOOOOOQ is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 01-19-2014 , 17:43   Re: Undefined Symbol
Reply With Quote #2

You've likely missed a curly bracket out somewhere.
__________________
11530 is offline
Marcus101RR
Veteran Member
Join Date: Aug 2009
Location: Tampa, FL
Old 01-19-2014 , 18:43   Re: Undefined Symbol
Reply With Quote #3

Your undefined Symbol is not within your code, unless you specify the location and post your entire code we cannot help you.
__________________

Last edited by Marcus101RR; 01-19-2014 at 18:44.
Marcus101RR is offline
Send a message via AIM to Marcus101RR Send a message via Skype™ to Marcus101RR
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 01-19-2014 , 18:54   Re: Undefined Symbol
Reply With Quote #4

Change
PHP Code:
 public Action:Timer_ChooseTeamMenu(Handle:hTimer
To
PHP Code:
 public Action:Timer_ChooseTeamMenu(Handle:hTimerany:any
</span></span>
xf117 is offline
Send a message via ICQ to xf117
Impact123
Veteran Member
Join Date: Oct 2011
Location: Germany
Old 01-19-2014 , 19:24   Re: Undefined Symbol
Reply With Quote #5

The prototype he has is perfectly fine, see here.
__________________

Last edited by Impact123; 01-19-2014 at 19:25.
Impact123 is offline
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-19-2014 , 21:34   Re: Undefined Symbol
Reply With Quote #6

I see, I'll just fix other errors and leave that one till last, maybe it might solve itself - as for posting code, I believe to have posted everything remotely relevant to it(of course not globals) simply because the sp is very large..
QOOOOOOOOQ is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 01-19-2014 , 21:40   Re: Undefined Symbol
Reply With Quote #7

If you posted the exact output from the compiler, and labeled which line(s) where indicated from said compiler, you might get better help.
Marcus_Brown001 is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 01-19-2014 , 23:41   Re: Undefined Symbol
Reply With Quote #8

if he miss the curly bracket, the compiler give wrong error line.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.
GsiX is offline
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-20-2014 , 01:27   Re: Undefined Symbol
Reply With Quote #9

It specifically says Timer_ChooseTeamMenu is undefined, that's the only part that references it, and that's the only function about it. Maybe a handle error or something.
QOOOOOOOOQ is offline
GsiX
gee, six eggs
Join Date: Aug 2012
Location: Land Below The Wind
Old 01-20-2014 , 02:30   Re: Undefined Symbol
Reply With Quote #10

That exactly how the compiler confused. It gives wrong error.

Edit: to detect which curly bracket is missing, your notepad++ collapse 1 level all. There is an option to do that.
__________________
If i happen to insulted you unintentionally,
it was me and Google Translate who did it.

Last edited by GsiX; 01-20-2014 at 02:37.
GsiX 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 14:25.


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