Hunter-Digital
05-01-2008, 23:25
I keep getting a compile warning "tag mismach" on the lines in the test() function, starting from get_user_origin() :| , the plugin compliles but the client recieves SVC_BAD when I run the "test" command and I'm sure it's because of that warning, what's wrong ?
new beam
public plugin_init()
{
register_plugin("UT ONS Mod", "0.1 BETA", "Hunter-Digital")
register_clcmd("test", "test")
}
public plugin_precache()
{
beam = precache_model("sprites/zbeam3.spr")
}
public test(id)
{
new Float:origin[3]
get_user_origin(id, origin, 3)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMPOINTS)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_coord(origin[0])
write_coord(origin[1]+1000)
write_coord(origin[2])
write_short(beam)
write_byte(0)
write_byte(0)
write_byte(1)
write_byte(255)
write_byte(0)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(255)
write_byte(0)
message_end()
}
new beam
public plugin_init()
{
register_plugin("UT ONS Mod", "0.1 BETA", "Hunter-Digital")
register_clcmd("test", "test")
}
public plugin_precache()
{
beam = precache_model("sprites/zbeam3.spr")
}
public test(id)
{
new Float:origin[3]
get_user_origin(id, origin, 3)
message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
write_byte(TE_BEAMPOINTS)
write_coord(origin[0])
write_coord(origin[1])
write_coord(origin[2])
write_coord(origin[0])
write_coord(origin[1]+1000)
write_coord(origin[2])
write_short(beam)
write_byte(0)
write_byte(0)
write_byte(1)
write_byte(255)
write_byte(0)
write_byte(255)
write_byte(0)
write_byte(0)
write_byte(255)
write_byte(0)
message_end()
}