Raised This Month: $ Target: $400
 0% 

if equal problem!


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
proffs
Senior Member
Join Date: Jul 2013
Old 06-19-2014 , 05:45   if equal problem!
Reply With Quote #1

Alright so I have 2 plugins on a server which conflicts with each other..

I have a command /donate and another command /donatexp
Whenever i use a command both of the plugin is called.

PHP Code:
public ClCmd_Sayid )
{
    new 
szArgs64 ]
    
    
read_argsszArgscharsmaxszArgs ) )
    
remove_quotesszArgs )
    
    
    
    new 
arg1[16]
    new 
arg2[32]
    
    
strbreak(szArgsarg1charsmax(arg1), arg2charsmax(arg2))
    if (
equali(arg1,"/donate"7))
        
donate(idarg2)


PHP Code:
public ClCmd_Sayid )
{
    new 
szArgs64 ];
    
    
read_argsszArgscharsmaxszArgs ) );
    
remove_quotesszArgs );
    
    
    new 
arg1[16];
    new 
arg2[32];
    
    
strbreak(szArgsarg1charsmax(arg1), arg2charsmax(arg2));
    if (
equali(arg1,"/donatexp"7))
        
donate(idarg2);

Any Idea how to fix this`?
proffs is offline
 



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 21:07.


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