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?