Raised This Month: $ Target: $400
 0% 

bool not working properly


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-29-2010 , 11:32   Re: bool not working properly
Reply With Quote #4

I'm using this in plugin of mine :
PHP Code:
bool:bCheckFlood(idFloat:flDelay 1.0)
{
    static 
Float:flTime
    flTime 
get_gametime()

    if(
g_flNextCmd[id] > flTime)
    {
        return 
true
    
}

    
g_flNextCmd[id] = flTime flDelay
    
return false

Also, your error is because you pass an id > 32, aka not a player...
__________________
- tired and retired -

- my plugins -
ConnorMcLeod 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 11:25.


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