AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   PF_WriteString_I called with no active message (https://forums.alliedmods.net/showthread.php?t=243629)

danonix 07-07-2014 13:14

PF_WriteString_I called with no active message
 
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 07-07-2014 14:44

Re: PF_WriteString_I called with no active message
 
Well, something else makes that error in server.

Can i have an explanation when this error shows? What causes it?


All times are GMT -4. The time now is 21:11.

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