AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with natives. (https://forums.alliedmods.net/showthread.php?t=189687)

Santaaa 07-09-2012 21:22

Help with natives.
 
Hello,

How would I check if a bool is set true through a native?

Liverwiz 07-09-2012 21:24

Re: Help with natives.
 
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

fysiks 07-09-2012 23:34

Re: Help with natives.
 
Code:

return bool_variable

Santaaa 07-10-2012 09:09

Re: Help with natives.
 
Thanks all :)


All times are GMT -4. The time now is 15:19.

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