Raised This Month: $ Target: $400
 0% 

[help] letting 2 plugins interact with each other


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 05-29-2012 , 11:04   Re: [help] letting 2 plugins interact with each other
Reply With Quote #6

Like this then, this is exactly how it should be used and no diffrent right??:

PHP Code:
public _is_user_rebel(plugin,params)
{
if( 
is_user_rebel[get_param(1)] )
 return 
1;
else
 return 
0;
}
 
public 
_set_user_rebel(plugin,params)
{
return 
is_user_rebel[get_param(1)];
}
 
public 
_remove_user_rebel(plugin,params)
{
return !
is_user_rebel[get_param(1)];

Omfg this is pissing me off...
the is_user_rebel function doesnt work.. it supposedly doesnt return a value?!..

then i tryed it this way:
(is_user_rebel(get_param(1)) ) ? return 1 : return 0

that gave me this error & warning:
Error: Invalid expression, assumed zero on line 407
Warning: Expression has no effect on line 407
Error: Expected token: ";", but found "return" on line 407
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]

Last edited by striker07; 05-29-2012 at 13:24.
striker07 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 07:47.


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