Raised This Month: $ Target: $400
 0% 

Help with natives.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Santaaa
BANNED
Join Date: May 2012
Old 07-09-2012 , 21:22   Help with natives.
Reply With Quote #1

Hello,

How would I check if a bool is set true through a native?
Santaaa is offline
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 07-09-2012 , 21:24   Re: Help with natives.
Reply With Quote #2

Code:
new bool:g_bknuckles[33]
public bool:_has_brass(plugin, iParam)
{
	new player = get_param(1)
	return (iParam != 1 || !(0 < player <= gMaxPlayers) ) ? false : g_bknuckles[player]
}
C/P'd from my plugin
__________________
What an elegant solution to a problem that doesn't need solving....

Last edited by Liverwiz; 07-09-2012 at 21:24.
Liverwiz is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 07-09-2012 , 23:34   Re: Help with natives.
Reply With Quote #3

Code:
return bool_variable
__________________
fysiks is offline
Santaaa
BANNED
Join Date: May 2012
Old 07-10-2012 , 09:09   Re: Help with natives.
Reply With Quote #4

Thanks all
Santaaa is offline
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 15:19.


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