Raised This Month: $ Target: $400
 0% 

Dumb Question..


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Gari
New Member
Join Date: Jun 2007
Old 06-27-2007 , 23:52   Dumb Question..
Reply With Quote #1

Hey, I'm just starting to poke around with AMXX code.. only really good with C++.. which makes me feel like an idiot right now (not being able to find where the error is..)

But with the ts_giveweapon function in tsfun.inc.. I keep getting a type mismatch.

Code:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>
#include <tsfun>

public plugin_init() {
    register_plugin("Test", "Alpha 1", "Gari")
    register_concmd("amx_get", "cmd_getwep", ADMIN_SLAY, " <target> <weapon> <clips> <addons> ")
}

public cmd_getwep(id, level, cid)
{
    if(!cmd_access(id, level, cid, 3))
    {
        console_print(id, "Sorry, you do not have access to amx_give.")
        return PLUGIN_HANDLED
    }
    
    new index[25]
    new weapon[3]
    new clips[4]
    new extra[3]
    
    read_argv(1, index, 24)
    read_argv(2, weapon, 2)
    read_argv(3, clips, 3)
    read_argv(4, extra, 2)
    
    ts_giveweapon( index,weapon,clips,extra )
    
    return PLUGIN_HANDLED
}
Can someone tell me if its the ts_giveweapon function that is restricting this from compiling or is it one of my read arguments?
Gari 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:33.


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