Half-Life и Adrenaline Gamer форум
http://aghl.ru/forum/

Error: Argument type mismatch (argument 1) TE_BEAMENTS
http://aghl.ru/forum/viewtopic.php?f=20&t=2086
Страница 1 из 1

Автор:  Kuma77 [ 24 фев 2015, 04:18 ]
Заголовок сообщения:  Error: Argument type mismatch (argument 1) TE_BEAMENTS

Hi,

i have entity have one classname and there is ent for red team and ent for blue i want make beam spr between player "id" and ent for each team :
am using this :

Код:
new entclass = find_ent_by_class(-1,"entclass");
message_begin(MSG_BROADCAST, SVC_TEMPENTITY, _, id) //message begin
write_byte(TE_BEAMENTS)
write_short(id) // start entity
write_short(entclass) // end entity
write_short(gSprite); //beam model
write_byte(1);
write_byte(1);
write_byte(1); //life
write_byte(120); //width
write_byte(1); //spread
write_byte(iEntTeam == TEAM_BLUE ? 100 : 0)
write_byte(1)
write_byte(iEntTeam == TEAM_RED ? 155 : 0)
write_byte(255);
write_byte(0);
message_end();

Страница 1 из 1 Часовой пояс: UTC + 5 часов [ Летнее время ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/