Raised This Month: $ Target: $400
 0% 

weapon as items


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
tetsoma
Member
Join Date: May 2006
Location: somewhere in my head
Old 06-10-2006 , 20:49   weapon as items
Reply With Quote #1

im useing 1.7

Code:
#include <amxmodx> #include <amxmisc> #include <engine> #include <tsfun> new PLUGIN[]="WEAPONS" new AUTHOR[]="Siddhartha" new VERSION[]="2.00" public plugin_init() {      register_plugin(PLUGIN, VERSION, AUTHOR)      register_srvcmd("item_gun","item_gun") } public item_gun(id) {     new arg[32], arg2[32], arg3[32], wepid, ammo, spwnflg     read_argv(1,arg,31)     read_argv(2,arg2,31)     read_argv(3,arg3,31)        wepid = str_to_num(arg)     ammo = str_to_num(arg2)     spwnflg = str_to_num(arg3)         if(wepid == 0) {         return PLUGIN_HANDLED     }     ts_giveweapon (id,wepid,ammo,spwnflg)     return PLUGIN_HANDLED }

it compiles yes but then i try and use the item in the game it gives me

run time error 10: native error (native "ts_giveweapon")
[0] weaponasitems.sma: :item_gun ( line 32 )
__________________


Tetsoma's RP
http://thespecialistsrp.com
i_hate_iburg
tetsoma is offline
Send a message via AIM to tetsoma Send a message via Yahoo to tetsoma
 



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 08:06.


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