*updated*
Hi, i have a problem at spawning an entity.
Code:
#include <amxmodx>
#include <amxmisc>
#include <ns2amx>
#include <engine>
public plugin_init() {
register_plugin("test","0.9b","B")
register_clcmd("say /armory","cmdArmory",ADMIN_MAP,"spawn a armory")
register_cvar ("amx_test_debug","0") // debug messages disabled by default
}
public cmdArmory(id) {
new ent
ent = create_entity("team_armory")
new szOrigin[128]
new origin[3]
get_user_origin(id,origin,0)
format(szOrigin,127,"%d %d %d",origin[0],origin[1],origin[2])
entity_set_origin ( ent, szOrigin[127] ) // <- row 23
return PLUGIN_HANDLED;
}
the team_armory is an ns specific entity, so dont wonder about it

Now the problem:
I get this error on compiling
Code:
test.sma(23) : error 047: array sizes must match
test.sma(25) : warning 217: loose indentation
thanks in advanced
-vampire