Raised This Month: $ Target: $400
 0% 

PF_WriteString_I called with no active message


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
danonix
Senior Member
Join Date: Dec 2012
Old 07-07-2014 , 13:14   PF_WriteString_I called with no active message
Reply With Quote #1

Hello,

This error happened to me for first time. I don't know why this happens. Can someone help me? It happened, when I have added this code do plugin:


Code:
new m_spriteTexture
....
public plugin_init() {
    register_event("CurWeapon", "make_tracer", "be", "1=1", "3>0")
}
...
public plugin_precache()
m_spriteTexture = precache_model("sprites/dot.spr")
...
public make_tracer(id)
{
    if(zmienna != 1)
        return;

        new vec1[3], vec2[3]
        get_user_origin(id, vec1, 1) // origin; your camera point.
        get_user_origin(id, vec2, 4) // termina; where your bullet goes (4 is cs-only)
        
        
        //BEAMENTPOINTS
        message_begin( MSG_BROADCAST,SVC_TEMPENTITY)
        write_byte (0)     //TE_BEAMENTPOINTS 0
        write_coord(vec1[0])
        write_coord(vec1[1])
        write_coord(vec1[2])
        write_coord(vec2[0])
        write_coord(vec2[1])
        write_coord(vec2[2])
        write_short( m_spriteTexture )
        write_byte(1) // framestart
        write_byte(5) // framerate
        write_byte(2) // life
        write_byte(10) // width
        write_byte(0) // noise
        write_byte( 30 )     // r, g, b
        write_byte( 144 )       // r, g, b
        write_byte( 255 )       // r, g, b
        write_byte(200) // brightness
        write_byte(150) // speed
        message_end()

}
danonix is offline
 


Thread Tools
Display Modes

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 21:11.


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