Could you tell me what im doing wrong? Thanks you very much for your help, I have just got no idea what's wrong
Code:
new sprite
new const szSprite[] = "sprites/laserbeam.spr"
....
precache_model(szSprite)
....
Util_TE_BEAMFOLLOW(player, id, sprite, 20, 5, 0, 255, 0, 100)
....
public Util_TE_BEAMFOLLOW(id, entity, sprite, life, width, red, green, blue, brightness)
{
message_begin(id ? MSG_ONE : MSG_ALL, SVC_TEMPENTITY, _, id);
write_byte(TE_BEAMFOLLOW);
write_short(entity);
write_short(szSprite);
write_byte(life);
write_byte(width);
write_byte(red);
write_byte(green);
write_byte(blue);
write_byte(brightness);
message_end();
}