Raised This Month: $ Target: $400
 0% 

Check boolean


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
undead52
Senior Member
Join Date: Dec 2016
Old 06-01-2019 , 07:56   Re: Check boolean
Reply With Quote #4

This how code looks. the problem i set boolean true but it doesnt works
PHP Code:
new bool:g_bAwpRound;

public 
func(id)
{
    if(
g_iRound 10 != 0)
        return 
PLUGIN_HANDLED;
    else if(
g_iRound 10 == || g_bAwpRound)
    {
        
give_item(id"weapon_awp")
    }


Ok i see it now. because it is about that return.
changed to now.
PHP Code:
    if(g_iRound 10 == || g_bAwpRound)
    {
        
give_item(id"weapon_awp")
    } 

Last edited by undead52; 06-01-2019 at 08:01.
undead52 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 17:28.


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