Raised This Month: $ Target: $400
 0% 

2 little problems


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
schmurgel1983
Veteran Member
Join Date: Aug 2006
Location: Germany
Old 03-23-2011 , 14:01   Re: 2 little problems
Reply With Quote #2

Quote:
Originally Posted by georgik57 View Post
please help me fix these codes
problem 1:
add #include <cstrike>
add #include <fun>
delete native from file, fun dosen't autoload from zp so u must use include
code looks fine

problem 2:
PHP Code:
// BP Ammo update
g_infammo[id] == 
PHP Code:
// Current Weapon info
g_infammo[msg_entity] <= 
PHP Code:
// Native: zpnm_get_user_unlimited_ammo
public native_get_user_infammo(id)
{
    
// ZP disabled
    
if (!g_pluginenabled)
        return -
1;
    
    return 
g_infammo[id];

PHP Code:
// Native: zpnm_set_user_unlimited_ammo
public native_set_user_infammo(idset)
{
    
// ZP disabled
    
if (!g_pluginenabled)
        return -
1;
    
    switch (
set)
    {
        case 
1g_infammo[id] = 1;
        case 
2g_infammo[id] = 2;
        default: 
g_infammo[id] = 0;
    }
    
    return 
1;

__________________

Working on:
nothing
schmurgel1983 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 14:40.


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