Raised This Month: $ Target: $400
 0% 

When I try to test the plugin, it crashes the game


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Natsheh
Veteran Member
Join Date: Sep 2012
Old 05-26-2021 , 08:14   Re: When I try to test the plugin, it crashes the game
Reply With Quote #9

PHP Code:

    
while (iKnife iMaxKnife)
    {
        
// Choose random guy
        
id GetRandomAlive(random_num(1alive_count))
        
        
// Already a survivor or nemesis?
        
if (zp_class_survivor_get(id) || zp_class_nemesis_get(id) || zp_class_sniper_get(id) || zp_class_knifer_get(id))
            continue;
        
        
// If not, turn him into one
        
zp_class_knifer_set(id)
        
iKnife++
        
        
// Apply Knife health multiplier
        
set_user_health(idfloatround(get_user_health(id) * get_pcvar_float(cvar_nightmare_kni_hp_multi)))
    } 
try to think abit about the logic of this loop and how it will end ?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
 



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 02:35.


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