Raised This Month: $ Target: $400
 0% 

talkzone help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Sp4rt4n
Senior Member
Join Date: Dec 2004
Old 03-05-2005 , 10:31   talkzone help
Reply With Quote #1

welp, im trying to edit a talkzone plugin...
ive seen a double if statement used before... but i dunno if it worked, so i tried a triple one! lol, anyway, can someone fix this code? it compiles with no warnings or errors, but the advertisement part doesnt work...

i dont know why it doesnt work, heres what im trying to change:

Code:
    if(multipart == 1 && equali(arg1,"ooc")) { // out-of-character       client_print(0,print_chat,"(OOC) %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     if(multipart == 1 && equali(arg1,"adv")) { // Advertisement       client_print(0,print_chat,"<Advertisment> %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     if(multipart == 1 && equali(arg1,"cnn") && access(id,ADMIN_LEVEL_A)) { // cnn       client_cmd(0,"speak ^"fvox/alert^"");       client_print(0,print_chat,"<CNN Newsflash> %s^n",arg2);       return PLUGIN_HANDLED;     }

from this:

Code:
    if(multipart == 1 && equali(arg1,"ooc")) { // out-of-character       client_print(0,print_chat,"(OOC) %s: ((%s))^n",playername,arg2);       return PLUGIN_HANDLED;     }     else if(multipart == 1 && equali(arg1,"cnn") && access(id,ADMIN_LEVEL_A)) { // cnn       client_cmd(0,"speak ^"fvox/alert^"");       client_print(0,print_chat,"<CNN Newsflash> %s^n",arg2);       return PLUGIN_HANDLED;     }
Sp4rt4n is offline
Send a message via MSN to Sp4rt4n
 



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 13:58.


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