Raised This Month: $ Target: $400
 0% 

SMLIB 0.11 BETA (over 300 Function Stocks) | updated 15.07.2011


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Peace-Maker
SourceMod Plugin Approver
Join Date: Aug 2008
Location: Germany
Old 04-13-2011 , 17:13   Re: SMLIB 0.10.1 BETA (over 300 Function Stocks) | updated 07.03.2011
Reply With Quote #11

stock Client_GiveWeaponAndAmmo(client, const String:className[], bool:switchTo=true, primaryAmmo=-1, secondaryAmmo=-1, primaryClip=-1, secondaryClip=-1);

The comment says, the value is untouched if "-1", but the primaryClip and secondaryClip is still set.
Maybe use
PHP Code:
    if(primaryClip != -1)
        
Weapon_SetPrimaryClip(weaponprimaryClip);
    if(
secondaryClip != -1)
        
Weapon_SetSecondaryClip(weaponsecondaryClip); 
instead of
PHP Code:
Weapon_SetClips(weaponprimaryClipsecondaryClip); 
__________________
Peace-Maker 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 21:59.


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