Raised This Month: $32 Target: $400
 8% 

What is wrong of this?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 05-26-2012 , 04:41   What is wrong of this?
Reply With Quote #1

PHP Code:
public client_putinserver(id) {
    new 
iFlags get_user_flags(id);

    if(
iFlags == read_flags(g_RangFlags) {
        
set_task(10.0"advertise_vip"id);
    } else if(
iFlags == read_flags(g_RangFlags2) {
        
set_task(10.0"advertise_admin"id);
    } else if(!(
iFlags read_flags(g_RangFlag0))) {
        
set_task(12.0"no_admin"id);
    }

if(!(iFlags == read_flags(g_RangFlag0))) is not readed

Last edited by sudzone; 05-26-2012 at 04:41.
sudzone is offline
Send a message via Yahoo to sudzone
bLacK-bLooD
AlliedModders Donor
Join Date: Jun 2008
Old 05-26-2012 , 05:06   Re: What is wrong of this?
Reply With Quote #2

PHP Code:
    } else if(!(iFlags read_flags(g_RangFlag0))) { 
->

PHP Code:
    } else if(!(iFlags read_flags(g_RangFlags0))) { 
So your code should look like this :

PHP Code:
public client_putinserver(id) {
    new 
iFlags get_user_flags(id);

    if(
iFlags == read_flags(g_RangFlags) {
        
set_task(10.0"advertise_vip"id);
    } else if(
iFlags == read_flags(g_RangFlags2) {
        
set_task(10.0"advertise_admin"id);
    } else if(!(
iFlags read_flags(g_RangFlags0))) {
        
set_task(12.0"no_admin"id);
    }

__________________
We all live under the same sky but we have different horizons.

Last edited by bLacK-bLooD; 05-26-2012 at 05:06.
bLacK-bLooD is offline
sudzone
Member
Join Date: Jan 2010
Location: Bucharest
Old 05-26-2012 , 05:26   Re: What is wrong of this?
Reply With Quote #3

Resolved:

with ->
PHP Code:
public client_putinserver(id) { 
    if(
get_user_flags(id) & ADMIN_LEVEL_F) { 
        
set_task(10.0"advertise_vip"id); 
    } else if(
get_user_flags(id) & ADMIN_LEVEL_G) { 
        
set_task(10.0"advertise_admin"id); 
    } else if(!(
get_user_flags(id) & ADMIN_LEVEL_G)) { 
        
set_task(12.0"no_admin"id); 
    } 


Last edited by sudzone; 05-26-2012 at 07:01.
sudzone is offline
Send a message via Yahoo to sudzone
Reply


Thread Tools
Display Modes

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


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