PDA

View Full Version : tag mismach


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()
}

Hunter-Digital
05-02-2008, 00:50
nevermind, fixed, get_user_origin() returns an int not a float :roll:

Sn!ff3r
05-02-2008, 01:09
new Float:origin[3] change to new origin[3]

Hunter-Digital
05-02-2008, 01:19
Like I said, I FIXED IT :roll:

Sn!ff3r
05-02-2008, 02:30
@Hunter-Digital (http://forums.alliedmods.net/member.php?u=19318) oops, sorry - i dont look to usernames.