Raised This Month: $ Target: $400
 0% 

have some problem with func. "contain"


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Ltv
Junior Member
Join Date: Jul 2007
Old 09-05-2007 , 04:56   Re: have some problem with func. "contain"
Reply With Quote #3

One more specification

Code:
 
for (new i=0; i < 4; i++) {
 if((containi(arg[i],read) != -1))
    {
     console_print(id, "%L", id, "NOT_ALLOW_LMP")
     return PLUGIN_HANDLED
    }
}
and when i use equali , the plugin do plugin handled to all maps,
even on those which are not entered in the file.

if i do so

Code:
 
 if(equali(arg[0],read))
    {
     console_print(id, "%L", id, "NOT_ALLOW_LMP")
     return PLUGIN_HANDLED
    }
then work, but only with one maps

i tried do

Code:
 
 if(equali(arg[0],read) || equali(arg[1],read) || equali(arg[2],read)...)
    {
     console_print(id, "%L", id, "NOT_ALLOW_LMP")
     return PLUGIN_HANDLED
    }
It works also as with a cycle

Last edited by Ltv; 09-05-2007 at 05:01.
Ltv 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 16:04.


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