Raised This Month: $51 Target: $400
 12% 

too messages


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
husam124
BANNED
Join Date: Jul 2017
Location: Usa
Old 02-27-2022 , 04:59   too messages
Reply With Quote #1

i currently trying to make an explosion that works with sprite one with fire explosion the other is frost explosion but while making the frost explosion this problem happens in the server:-
Code:
Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
while here is the frost explosion function:-
Code:
stock Create_FR_EXPLOSION( const Float:iOrigin[3] )
{
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte (TE_SPRITE) // TE ID
	engfunc(EngFunc_WriteCoord, iOrigin[0])
	engfunc(EngFunc_WriteCoord, iOrigin[1])
	engfunc(EngFunc_WriteCoord, iOrigin[2] + 50.0) 
	write_short( Sprite_Frost ) // Sprite index
	write_byte( 100 ) // Size of sprite
	write_byte( 20 )
	write_byte( 0 )
	message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
	new Float: fOrigin[ 3 ], iOrigin[ 3 ];
	entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
	FVecIVec( fOrigin, iOrigin );
		
	Create_FR_EXPLOSION( iOrigin );	
}
husam124 is offline
Send a message via ICQ to husam124 Send a message via AIM to husam124 Send a message via Yahoo to husam124 Send a message via Skype™ to husam124
zXCaptainXz
Member
Join Date: May 2017
Old 02-27-2022 , 05:18   Re: too messages
Reply With Quote #2

Code:
stock Create_FR_EXPLOSION( const Float:fOrigin[3] )
{
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte (TE_SPRITE) // TE ID
	engfunc(EngFunc_WriteCoord, fOrigin[0])
	engfunc(EngFunc_WriteCoord, fOrigin[1])
	engfunc(EngFunc_WriteCoord, fOrigin[2] + 50.0) 
	write_short( Sprite_Frost ) // Sprite index
	write_byte( 100 ) // Size of sprite
	write_byte( 20 )
	write_byte( 0 )
	message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
	new Float: fOrigin[ 3 ], iOrigin[ 3 ];
	entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
	FVecIVec( fOrigin, iOrigin );
		
	Create_FR_EXPLOSION( fOrigin );	
}

Last edited by zXCaptainXz; 02-27-2022 at 05:20.
zXCaptainXz is offline
husam124
BANNED
Join Date: Jul 2017
Location: Usa
Old 02-27-2022 , 05:47   Re: too messages
Reply With Quote #3

still happening
Quote:
Last 32 messages parsed.
6648394 0034 svc_deltapacketentities
6648396 0008 svc_time
6648396 0013 svc_clientdata
6648396 0034 svc_deltapacketentities
6648397 0008 svc_time
6648397 0013 svc_clientdata
6648397 0034 svc_deltapacketentities
6648399 0008 svc_time
6648399 0013 svc_clientdata
6648399 0034 svc_deltapacketentities
6648401 0008 svc_time
6648401 0013 svc_clientdata
6648401 0034 svc_deltapacketentities
6648401 0045 svc_temp_entity
6648401 0157 svc_temp_entity
6648401 0211 svc_temp_entity
6648402 0008 svc_stufftext
6648402 0052 SendAudio
6648402 0072 svc_temp_entity
6648402 0081 RoundTime
6648402 0084 svc_time
6648402 0089 svc_clientdata
6648402 0114 svc_deltapacketentities
6648404 0008 svc_time
6648404 0013 svc_clientdata
6648404 0038 svc_deltapacketentities
6648405 0008 svc_time
6648405 0013 svc_clientdata
6648405 0031 svc_deltapacketentities
6648405 0042 svc_sound
6648405 0055 svc_temp_entity
BAD: 67:svc_bad
Host_Error: CL_ParseServerMessage: Ill
husam124 is offline
Send a message via ICQ to husam124 Send a message via AIM to husam124 Send a message via Yahoo to husam124 Send a message via Skype™ to husam124
zXCaptainXz
Member
Join Date: May 2017
Old 02-27-2022 , 06:54   Re: too messages
Reply With Quote #4

Please post the full code.
zXCaptainXz is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 02-27-2022 , 12:45   Re: too messages
Reply With Quote #5

Code:
Create_FR_EXPLOSION( const Float:fOrigin[3] ) {     engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, fOrigin, 0);     write_byte (TE_SPRITE) // TE ID     engfunc(EngFunc_WriteCoord, fOrigin[0])     engfunc(EngFunc_WriteCoord, fOrigin[1])     engfunc(EngFunc_WriteCoord, fOrigin[2] + 50.0)     write_short( g_Sprite_Frost ) // Sprite index, make sure the sprite is precached.     write_byte( 100 ) // Size of sprite     write_byte( 20 )     write_byte( 0 )     message_end(  ) } CreateFrost( iAttacker, iEntity, Float: fHealth ) {     new Float: fOrigin[ 3 ];     entity_get_vector( iEntity, EV_VEC_origin, fOrigin );             Create_FR_EXPLOSION( fOrigin )}
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 02-27-2022 at 12:45.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Alahmoh
Member
Join Date: Jun 2018
Old 02-28-2022 , 15:34   Re: too messages
Reply With Quote #6

Quote:
Originally Posted by husam124 View Post
i currently trying to make an explosion that works with sprite one with fire explosion the other is frost explosion but while making the frost explosion this problem happens in the server:-
Code:
Host_Error: CL_ParseServerMessage: Illegible server message - svc_bad
while here is the frost explosion function:-
Code:
stock Create_FR_EXPLOSION( const Float:iOrigin[3] )
{
	message_begin(MSG_BROADCAST,SVC_TEMPENTITY)
	write_byte (TE_SPRITE) // TE ID
	engfunc(EngFunc_WriteCoord, iOrigin[0])
	engfunc(EngFunc_WriteCoord, iOrigin[1])
	engfunc(EngFunc_WriteCoord, iOrigin[2] + 50.0) 
	write_short( Sprite_Frost ) // Sprite index
	write_byte( 100 ) // Size of sprite
	write_byte( 20 )
	write_byte( 0 )
	message_end(  )
}

stock CreateFrost( iAttacker, iEntity, Float: fHealth ) {
	new Float: fOrigin[ 3 ], iOrigin[ 3 ];
	entity_get_vector( iEntity, EV_VEC_origin, fOrigin );
	FVecIVec( fOrigin, iOrigin );
		
	Create_FR_EXPLOSION( iOrigin );	
}
Code:
	engfunc(EngFunc_MessageBegin, MSG_PVS, SVC_TEMPENTITY, originF, 0)
	write_byte(TE_BEAMCYLINDER) // TE id
	engfunc(EngFunc_WriteCoord, originF[0]) // x
	engfunc(EngFunc_WriteCoord, originF[1]) // y
	engfunc(EngFunc_WriteCoord, originF[2]) // z
	engfunc(EngFunc_WriteCoord, originF[0]) // x axis
	engfunc(EngFunc_WriteCoord, originF[1]) // y axis
	engfunc(EngFunc_WriteCoord, originF[2]+385.0) // z axis
	write_short(g_exploSpr) // sprite
	write_byte(0) // startframe
	write_byte(0) // framerate
	write_byte(4) // life
	write_byte(60) // width
	write_byte(0) // noise
	write_byte(0) // red
	write_byte(100) // green
	write_byte(200) // blue
	write_byte(200) // brightness
	write_byte(0) // speed
	message_end()
you could try this also you could just use OciXcroom inc :-https://forums.alliedmods.net/showthread.php?p=2612418
Alahmoh 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 15:56.


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