Raised This Month: $ Target: $400
 0% 

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
xf117
Senior Member
Join Date: Mar 2010
Location: Russia
Old 01-20-2014 , 05:44   Re: Undefined Symbol
Reply With Quote #6

Quote:
Originally Posted by Impact123 View Post
The prototype he has is perfectly fine, see here.
Ha, i never looked at that
Interesting.
xf117 is offline
Send a message via ICQ to xf117
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-19-2014 , 21:34   Re: Undefined Symbol
Reply With Quote #7

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 #8

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 #9

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
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 01-20-2014 , 09:53   Re: Undefined Symbol
Reply With Quote #10

Quote:
Originally Posted by GsiX View Post
if he miss the curly bracket, the compiler give wrong error line.
I understand that. He said the file is large, and unless the timer function is the very last thing in the file, other things would more than likely come up as undefined if he missed a closing bracket somewhere. Or at least when I miss one I get more than one function being seen as undefined.
Marcus_Brown001 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:33.


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