Raised This Month: $ Target: $400
 0% 

Solved [ H3LP ] Light Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 07-06-2017 , 10:55   Re: [ H3LP ] Light Issue
Reply With Quote #1

Quote:
Originally Posted by SpawnerF View Post
Looking at this
Code:
 // Teh_Freak: Entity Lighting!      MESSAGE_BEGIN( MSG_BROADCAST, SVC_TEMPENTITY );           WRITE_BYTE( TE_ELIGHT );           WRITE_SHORT( entindex( ) );     // entity, attachment           WRITE_COORD( pev->origin.x );     // origin           WRITE_COORD( pev->origin.y );           WRITE_COORD( pev->origin.z );           WRITE_COORD( 8 );     // radius           WRITE_BYTE( 255 );     // R           WRITE_BYTE( 192 );     // G           WRITE_BYTE( 64 );     // B           WRITE_BYTE( 2 );     // life * 10           WRITE_COORD( 0 ); // decay      MESSAGE_END();      // Teh_Freak: Entity Lighting!

or

Code:
stock Create_TE_ELIGHT(entity, start[3], radius, red, green, blue, life, decayRate){     message_begin( MSG_BROADCAST, SVC_TEMPENTITY )     write_byte( TE_ELIGHT )     write_short( entity )           // entity     write_coord( start[0] )         // initial position     write_coord( start[1] )         // initial position     write_coord( start[2] )         // initial position     write_coord( radius )           // radius     write_byte( red )               // red     write_byte( green )             // green     write_byte( blue )              // blue     write_byte( life )              // life     write_coord( decayRate )        // decay rate     message_end() }

You didn't add
Code:
write_short( entity )

http://twhl.info/articulator.php?art=167

Spoiler


which is the entity index also adding set_task make no sense, you already write things to the entity ...
I updated my amxx 1.8.3.5120 to latest 1.8.3.5123 build and now it works fine.
DarthMan is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:10.


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