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

AddCommandListener undefined symbol


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
webbhelp
Member
Join Date: Jan 2010
Old 05-13-2010 , 10:01   AddCommandListener undefined symbol
Reply With Quote #1

Hi!

My code:

public OnPluginStart()
{
AddCommandListener(Command_Login, "login");

....


public Action:Command_Login(client, const String:command[], argc)
{
...
I get the error: error017; undefined symbol "AddCommandListener"

how can I solve this?

Thanks!
webbhelp is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-13-2010 , 10:26   Re: AddCommandListener undefined symbol
Reply With Quote #2

Make sure you're using the scripting and include directories are the ones from SM 1.3.0 or later.
psychonic is offline
webbhelp
Member
Join Date: Jan 2010
Old 05-13-2010 , 12:18   Re: AddCommandListener undefined symbol
Reply With Quote #3

I upgrade my version And no more error message!

but the function never calls:
AddCommandListener(Command_Login, "login");

public Action:Command_Login(client, const String:command[], argc)
{

please help me to solve it
webbhelp is offline
psychonic

BAFFLED
Join Date: May 2008
Old 05-13-2010 , 13:11   Re: AddCommandListener undefined symbol
Reply With Quote #4

Quote:
Originally Posted by webbhelp View Post
I upgrade my version And no more error message!

but the function never calls:
AddCommandListener(Command_Login, "login");

public Action:Command_Login(client, const String:command[], argc)
{

please help me to solve it
Do you have a plugin providing the 'login' command? I don't believe a server command with that name already exists.
psychonic is offline
webbhelp
Member
Join Date: Jan 2010
Old 05-14-2010 , 07:25   Re: AddCommandListener undefined symbol
Reply With Quote #5

Ok the thing I want to do is that the players will write login or !login,/login and then there username.

How can I listen for a !login or login command and then take the username they wrote after login or !login.

Please help me with this.

I don't understand this don't know which function I will use or how to use it :S

thanks
webbhelp is offline
dirka_dirka
Veteran Member
Join Date: Nov 2009
Old 05-14-2010 , 13:57   Re: AddCommandListener undefined symbol
Reply With Quote #6

use RegConsoleCmd

AddCommandListener is for commands that already exist (eg: say, say_team)
dirka_dirka 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 08:04.


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