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

grenade_throw not working in AMXX 1.8.3


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 06-06-2017 , 14:55   grenade_throw not working in AMXX 1.8.3
Reply With Quote #1

HTML Code:
public grenade_throw(id, gid, wid)
{
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
	write_byte(TE_BEAMFOLLOW)
	write_short(gid)
	write_short(grenadetrail)
	write_byte(10)
	write_byte(5)
	write_byte(random(256))
	write_byte(random(256))
	write_byte(random(256))
	write_byte(192)
	message_end()
}
what to use then?
__________________
All you need is carb
Giass is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-06-2017 , 14:57   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #2

Don't asume is not working in 1.8.3 beacuse you don't know how to use it... make an debug testing to see if grenade_throw is called:
PHP Code:
public grenade_throwplayerIdgrenadeIdweaponIndex )
{
         
client_printplayerIdprint_chat"Grenade throw public." );

Btw: this is a dod function
__________________
Project: Among Us

Last edited by Craxor; 06-06-2017 at 15:02.
Craxor is offline
Send a message via ICQ to Craxor
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 06-06-2017 , 15:04   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #3

Quote:
Originally Posted by Craxor View Post
Don't asume is not working in 1.8.3 beacuse you don't know how to use it... make an debug testing to see if grenade_throw is called:
PHP Code:
public grenade_throwplayerIdgrenadeIdweaponIndex )
{
         
client_printplayerIdprint_chat"Grenade throw public." );

Btw: this is a dod function
I fixed it already

get some respect to others
__________________
All you need is carb
Giass is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 06-06-2017 , 15:06   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #4

He's not disrespecting you. You said that the native wasn't working instead of testing some debugs. He's right, do not assume when something is not working if you don't know how to use it. Always when you don't know why something ain't working, do some debugs that way is the best way to fix anything.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo

Last edited by EFFx; 06-06-2017 at 15:07.
EFFx is offline
Craxor
Veteran Member
Join Date: Jan 2016
Location: Romania
Old 06-06-2017 , 15:08   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #5

I said to you test for not making such mistakes like mine.

And you should say how did you 'fix' it.
__________________
Project: Among Us
Craxor is offline
Send a message via ICQ to Craxor
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 06-06-2017 , 15:22   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #6

HTML Code:
public grenade_throw(id, gid, wid)
{
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
	write_byte(TE_BEAMFOLLOW)
	write_short(gid)
	write_short(grenadetrail)
	write_byte(10)
	write_byte(5)
	write_byte(random(256))
	write_byte(random(256))
	write_byte(random(256))
	write_byte(192)
	message_end()
}
__________________
All you need is carb
Giass is offline
Giass
Member
Join Date: Aug 2011
Location: {Israel}
Old 06-06-2017 , 15:22   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #7

somehow now its working
__________________
All you need is carb
Giass is offline
wickedd
Veteran Member
Join Date: Nov 2009
Old 06-06-2017 , 15:46   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #8

Quote:
Originally Posted by Craxor View Post
Btw: this is a dod function
It's also a forward in CSX.inc
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
PartialCloning
Senior Member
Join Date: Dec 2015
Old 06-09-2017 , 14:33   Re: grenade_throw not working in AMXX 1.8.3
Reply With Quote #9

Quote:
Originally Posted by Giass View Post
HTML Code:
public grenade_throw(id, gid, wid)
{
	message_begin(MSG_BROADCAST, SVC_TEMPENTITY)
	write_byte(TE_BEAMFOLLOW)
	write_short(gid)
	write_short(grenadetrail)
	write_byte(10)
	write_byte(5)
	write_byte(random(256))
	write_byte(random(256))
	write_byte(random(256))
	write_byte(192)
	message_end()
}
what to use then?
You need to "#include <csx>" for grenade_throw to work.

Quote:
Originally Posted by Giass View Post
somehow now its working
Because another plugin you added includes csx.
PartialCloning 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 07:07.


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