Raised This Month: $ Target: $400
 0% 

Need help with sprite plugin for TS


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
sephiroth_nightmare
Junior Member
Join Date: Apr 2005
Old 04-10-2005 , 05:41  
Reply With Quote #3

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
sephiroth_nightmare 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 09:53.


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