Raised This Month: $ Target: $400
 0% 

Spawn sprite problem - code inside, needs fix


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
LynX
Veteran Member
Join Date: Oct 2004
Old 03-11-2005 , 14:39  
Reply With Quote #6

Now I have this:
Code:
#include <amxmodx> #include <engine> public plugin_init(id) {     register_plugin("Test","unknown","LynX")     register_clcmd("test","spawn_sprite")     return PLUGIN_CONTINUE } new sprite public spawn_sprite(id) {     new origin[3]     get_user_origin(id, origin, 0) // id, array origin, 0 means current origin     message_begin(MSG_ALL,SVC_TEMPENTITY)     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     write_short( 6.0 )     // sprite life     message_end()     return PLUGIN_HANDLED } public plugin_precache() {     sprite = precache_model("sprites/testsprite.spr")     return PLUGIN_CONTINUE }

When I compile it, its fine.
But when I try to use it ingame ( I have adecquate sprite for plugin ), it crashes with this message:
Quote:
PF_WriteEntity_I called with no active message
Please, help me
__________________
Current plugin : SoulPunisher anti-cheat
Percentage done : {||--------} 20%

If you think v3x is a PIMP, paste this into your sig!

If you think Bailopan is DA BOMB, paste this into your sig
LynX is offline
Send a message via ICQ to LynX
 



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