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

Undefined Symbol


Post New Thread Reply   
 
Thread Tools Display Modes
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-27-2014 , 15:50   Re: Undefined Symbol
Reply With Quote #31

PHP Code:
new Handle:hNameOfHandle;
new 
bool:bNameOfBoolean[MAXPLAYERS+1]; 
As for the curly brackets closed, I collapsed level>1 all... Doesn't appear to be any missing, and what I posed above are any related functions in their entirety, so if they are correct there... I don't know what else to do. lol

Last edited by QOOOOOOOOQ; 01-27-2014 at 16:02.
QOOOOOOOOQ is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-27-2014 , 16:17   Re: Undefined Symbol
Reply With Quote #32

Quote:
Originally Posted by Powerlord View Post
What are you using to guarantee that they're a valid client? Oh right, IsClientInGame...
Userid should be used instead of InClientInGame for the simple reason that userid is unique and if the client disconnect and someone else connect between this 0.5 second delay, the new client = to the old.
Mathias. is offline
Visual77
Veteran Member
Join Date: Jan 2009
Old 01-27-2014 , 16:19   Re: Undefined Symbol
Reply With Quote #33

Timer_AnnounceDisconnect - new vClient should be new client;
or why not simply put it on one line. new client = ReadPackCell(hAnnounceDisconnectPack);

Quote:
Originally Posted by QOOOOOOOOQ View Post
public Action:Timer_AnnounceDisconnect(Handle:timer, Handle:hAnnounceDisconnectPack)
{
ResetPack(hAnnounceDisconnectPack);

new vClient; WRONG - then client will get undefined symbol

decl String:sReason[64];
client = ReadPackCell(hAnnounceDisconnectPack);
ReadPackString(hAnnountDisconnectPack, sReason, sizeof(sReason));

bSayingClientDisconnect[client] = false;

CPrintToChatAll(who, "%N Disconnected - Reason: %s", client, sReason);
}
[/PHP][/SPOILER]

Last edited by Visual77; 01-28-2014 at 03:30.
Visual77 is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-27-2014 , 16:30   Re: Undefined Symbol
Reply With Quote #34

Quote:
Originally Posted by QOOOOOOOOQ View Post
Ah I got the MaxClients and MAXPLAYERS defines mixed up...
Actually MaxClients is a variable that contain the maximum of slot that the server have. It a magical variable but it is not the total amount of clients in-game.
Mathias. is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 01-27-2014 , 16:44   Re: Undefined Symbol
Reply With Quote #35

Quote:
Originally Posted by Black-Rabbit View Post
Userid should be used instead of InClientInGame for the simple reason that userid is unique and if the client disconnect and someone else connect between this 0.5 second delay, the new client = to the old.
This is in a for loop looping from 1 to MaxClients.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 01-27-2014 at 16:45.
Powerlord is offline
Mathias.
Veteran Member
Join Date: Aug 2010
Location: Canada is my city
Old 01-27-2014 , 16:45   Re: Undefined Symbol
Reply With Quote #36

Quote:
Originally Posted by Powerlord View Post
This is in a for loop looping from 1 to MaxClients.
My bad.
Mathias. is offline
11530
Veteran Member
Join Date: Sep 2011
Location: Underworld
Old 01-27-2014 , 17:04   Re: Undefined Symbol
Reply With Quote #37

@QOOOOOOOOQ

Please post you're entire file here - not parts of it, everything. Comments, whitespace, included files, everything (zip if you must). I replied just 20 minutes after your initial post with the suggestion that you missed at least one bracket. I'll still stand by that, including the fact that one can indeed reproduce an "undefined symbol" error by leaving out a bracket, and would like to stop another eight days from being spent on an presumably trivial error.
__________________

Last edited by 11530; 01-27-2014 at 17:05.
11530 is offline
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-28-2014 , 01:17   Re: Undefined Symbol
Reply With Quote #38

Alright... lol - Note it is a complication of many plugins together that I'm trying to blend together to work better together and then I can just add stuff to it as I please and already know how to add it and where to add it. That being said, I don't want to offend anybody by using stuff they made, so if you see parts very similar... know that it is. While I'm at it, can anyone suggest things to improve certain aspects(that haven't yet been covered) for firstly: optimization, second: readability? Just going to post the file as anyone that wants to compile it will need it anyways.

Includes:
Attached Files
File Type: sp Get Plugin or Get Source (ReadyUp.sp - 55 views - 58.2 KB)

Last edited by QOOOOOOOOQ; 01-28-2014 at 01:24.
QOOOOOOOOQ is offline
Marcus_Brown001
AlliedModders Donor
Join Date: Nov 2012
Location: Illinois, United States
Old 01-28-2014 , 01:22   Re: Undefined Symbol
Reply With Quote #39

Quote:
Originally Posted by 11530 View Post
@QOOOOOOOOQ

Please post you're entire file here - not parts of it, everything. Comments, whitespace, included files, everything (zip if you must).
PHP Code:
fatal error 120cannot read from file"left4downtown" 

Last edited by Marcus_Brown001; 01-28-2014 at 01:38.
Marcus_Brown001 is offline
QOOOOOOOOQ
Senior Member
Join Date: Dec 2012
Old 01-28-2014 , 01:25   Re: Undefined Symbol
Reply With Quote #40

Woah woah now... haven't even got done posting it lol... try again.
QOOOOOOOOQ 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 17:58.


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