thanks for your help
but now that i have replaced them i get 2 errors during compile.
here is the code now
Code:
#include <amxmodx>
#include <fun>
new PLUGIN[]="ssjtransform"
new AUTHOR[]="PvtHudson"
new VERSION[]="1.00"
public plugin_init()
{
register_clcmd("amx_ssjtrans","spawn_sprite")
register_plugin(PLUGIN, VERSION, AUTHOR)
return PLUGIN_CONTINUE
}
new theSprite;
public plugin_precache(id){
theSprite = precache_model("sprites/trans.spr");
}
public spawn_sprite(id){
new spriteorigin[3];
get_user_origin(id,spriteorigin);
message_begin(MSG_BROADCAST,SVC_TEMPENTITY);
write_byte(17);
write_coord(spriteorigin[0]);
write_coord(spriteorigin[1]);
write_coord(spriteorigin[2]);
write_short(theSprite);
write_byte(20);
write_byte(200);
message_end();
}
public plugin_precache()
{
return PLUGIN_CONTINUE
}
the errors i get are these
Code:
symbol already defined "plugin_precache"
and
Code:
function header differs from prototype
is there a way to fix these error?
thanks