Raised This Month: $ Target: $400
 0% 

Spawn sprite problem - code inside, needs fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Knare
Member
Join Date: Oct 2004
Location: New York, USA
Old 03-11-2005 , 12:15  
Reply With Quote #2

umm gotta go but got
Code:
#include <amxmodx> //don't to include the include files or the compiler doesnt recognize any of the code #include <engine> // for origins, co-ods, etc. public plugin_init() {     register_plugin("Test","unknown","LynX")     register_clcmd("test","spawn_sprite")     return PLUGIN_CONTINUE } new sprite public spawn_sprite(id) {    new name[32],origin[3]    get_user_origin(id,name,31)    write_entity(id)    write_coord(origin[0]) // x coordinate    write_coord(origin[1]) // y coordinate    write_coord(origin[2]) // z coordinate    write_short(sprite)  // sprite name    message_end()    return PLUGIN_HANDLED } public plugin_precache() {    sprite = precache_model("sprites/testsprite.spr")    return PLUGIN_CONTINUE }

my teacher is gonna kill me (1 error, line 20)
__________________
0110101100111011100110000101110010011001
Knare is offline
Send a message via AIM to Knare Send a message via MSN to Knare
 



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 14:13.


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