Raised This Month: $51 Target: $400
 12% 

Return values


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 07-29-2012 , 17:31   Return values
Reply With Quote #1

Hi,

How will I only block it when the boolean is set true and else allow it?

PHP Code:
public Cmdnoscope(const entity)
{
    if (
Game2)
    {
        return 
HAM_SUPERCEDE
    
}

Cant leave it like this ofcourse, will get a warning on compiling + it wont work
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.

Last edited by Bilal Pro; 07-29-2012 at 17:32.
Bilal Pro is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 07-29-2012 , 17:39   Re: Return values
Reply With Quote #2

PHP Code:
public Cmdnoscope(const entity)
{
    if (
Game2)
    {
        return 
HAM_SUPERCEDE
    
}
    return 
HAM_IGNORED

__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-29-2012 , 17:40   Re: Return values
Reply With Quote #3

Or
PHP Code:
public Cmdnoscope(const entity)
{
    return 
Game2 HAM_SUPERCEDE HAM_IGNORED

__________________

Last edited by Bugsy; 07-29-2012 at 17:40.
Bugsy is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 07-29-2012 , 17:42   Re: Return values
Reply With Quote #4

But it will block it even if the boolean isnt set true
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
Bilal Pro
Senior Member
Join Date: Mar 2012
Location: Holland
Old 07-29-2012 , 17:46   Re: Return values
Reply With Quote #5

Quote:
Originally Posted by Bugsy View Post
Or
PHP Code:
public Cmdnoscope(const entity)
{
    return 
Game2 HAM_SUPERCEDE HAM_IGNORED

Nevermind urs worked, thanks.
__________________
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
Bilal Pro is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-29-2012 , 18:37   Re: Return values
Reply With Quote #6

Quote:
Originally Posted by Bilal Pro View Post
Nevermind urs worked, thanks.
Both codes do the same thing using different methods.
__________________
fysiks is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 07-29-2012 , 23:18   Re: Return values
Reply With Quote #7

Quote:
Originally Posted by Bilal Pro View Post
  • Point System with rank titles for sale [X] [100% private]
  • VIP Menu for sale [X] [100% private]
  • HnS shop more features for sale [X] [100% private]
Contact: Bilalzaandam1234, on steam if you are interested.
..really??
__________________

Working on:
[CSGO/CSS] Mmorpg - an extensive XP/level modulair platform
Progress: [♣♣♣♣♣♣♣|♣♣♣]
striker07 is offline
talha
Senior Member
Join Date: Jul 2011
Location: On Earth
Old 07-29-2012 , 23:39   Re: Return values
Reply With Quote #8

its one100 % private lool
__________________
PLz do visit my sites
www.igcse.tk
www.alevel.tk
mY Steam
talha is offline
Send a message via Yahoo to talha
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 07-30-2012 , 00:29   Re: Return values
Reply With Quote #9

Quote:
Originally Posted by talha View Post
its one100 % private lool
Once one other person has it, doesn't that diminish the percentage of privateness? Like, if he plans to distribute it to 100 server owners and he gives it to 1, it is then only 99% private?
__________________

Last edited by Bugsy; 07-30-2012 at 00:29.
Bugsy is offline
striker07
Veteran Member
Join Date: Mar 2012
Location: Solar System/Earth/Belgi
Old 07-30-2012 , 00:34   Re: Return values
Reply With Quote #10

Quote:
Originally Posted by Bugsy View Post
Once one other person has it, doesn't that diminish the percentage of privateness? Like, if he plans to distribute it to 100 server owners and he gives it to 1, it is then only 99% private?
LoL
I have seen many noobs who don't even bother to search first before they pay.
Search functions are free and moneysavers, don't you just love em
__________________

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



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 12:40.


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