Raised This Month: $ Target: $400
 0% 

DropWeaponSlot


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 07-05-2019 , 11:19   DropWeaponSlot
Reply With Quote #1

PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>
#include <fakemeta>
#include <fakemeta_util>
#include <fun>
#include <hamsandwich>
#include <xs>
#include <zombieplague>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"


public plugin_init() {

    
register_clcmd("say test" "test")
    
// Add your code here...
}

public 
test (id)
{
    
DropWeaponSlot id1);
}

stock DropWeaponSlotiPlayeriSlot 

    new 
iWeaponEntity GetWeaponFromSlotiPlayeriSlot ); 
    if( 
iWeaponEntity 
    { 
        new 
iWeaponID get_pdata_cbaseiWeaponEntitym_iId); 
         
        new 
szWeaponName32 ]; 
        
get_weaponnameiWeaponIDszWeaponNamecharsmaxszWeaponName ) ); 
         
        
engclient_cmdiPlayer"drop"szWeaponName ); 
    } 


stock GetWeaponFromSlotiPlayeriSlot 

    return ( 
<= iSlot <= ) ? get_pdata_cbaseiPlayerm_rpgPlayerItems_Slot0 iSlot) : -1

This is a test plugin but it has some errors i want to know what cause this errors ?

Compiler:
(32)undefined symbol "m_iId"
(43)undefined symbol "m_rpgPlayerItems_Slot0"
LearninG is offline
 


Thread Tools
Display Modes

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 17:16.


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