Raised This Month: $ Target: $400
 0% 

This should work, but doesnt?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-02-2004 , 21:33   This should work, but doesnt?
Reply With Quote #1

Code:
public parseirc(id) {     if (!(get_user_flags(id)&ACCESS_IRC)) {         console_print(id,"[IRC] Access Denied")         return PLUGIN_HANDLED     }     new arg1[32]     read_argv(1,arg1,32)     if (equali(arg1,"connect") || equali(arg1,"reconnect")) {         irc_connect()         console_print(id,"[IRC] Attempting to connect")         return PLUGIN_HANDLED     }     else if (equali(arg1,"disconnect")) {         end()         console_print(id,"[IRC] Disconnecting")         return PLUGIN_HANDLED     }     else if (equali(arg1,"say")) {         new msg[1024]         read_args(msg,32)         format(temp,1024,"PRIVMSG %s :%s^r^n",chan,msg[4])         additem(temp)     }     else if (equali(arg1,"join")) {         irc_joinchannel()         console_print(id,"[IRC] Attempting to join %s",chan)     }     else if (equali(arg1,"status")) {         console_print(id,"[IRC] Status:")         console_print(id,"[IRC] Cvar reports port %i, irc_socket reports %i",get_cvar_num("irc_clientport"),irc_socket)         console_print(id,"[IRC] Internal vars: Nick: %s/Username: %s/Chan: %s/Server: %s/Port: %i",nick,username,chan,server,port)         console_print(id,"[IRC] Ping counter at %i, message counter at %s",pings,curmesg)     }     else if (equali(arg1,"help")) {         console_print(id,"[IRC] For help setting the bot up, connect to irc.gamesurge.net channel #HldsIRC")         console_print(id,"[IRC] DO NOT HAVE THIS BOT CONNECT THERE")     }     else {         console_print(id,"[IRC] Command not found")     }     return PLUGIN_HANDLED }
Every command works except for status
For status I dont even get Command not found, it just does nothing
Did I miss something stupid?
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
BAILOPAN
Join Date: Jan 2004
Old 05-02-2004 , 21:35  
Reply With Quote #2

perhaps there are too many prints?
__________________
egg
BAILOPAN is offline
devicenull
Veteran Member
Join Date: Mar 2004
Location: CT
Old 05-02-2004 , 21:36  
Reply With Quote #3

Well
I feel stupid.
This started out as irc2.sma, then I renamed it to irc.sma when I released it, but didnt update plugins.ini :/
NM!
__________________
Various bits of semi-useful code in a bunch of languages: http://code.devicenull.org/
devicenull is offline
Johnny got his gun
Veteran Member
Join Date: Jan 2004
Location: Tokyo
Old 05-03-2004 , 05:04  
Reply With Quote #4

I do this error quite often also. No matter what I change the plugin never does as expected. Mostly it's because I'm working on the wrong sma which is in another folder etc... :-\
Johnny got his gun is offline
QwertyAccess
Veteran Member
Join Date: Feb 2004
Location: Enjiru Layer
Old 05-04-2004 , 04:44  
Reply With Quote #5

hehe i do that too
__________________
QwertyAccess 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 10:15.


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