Raised This Month: $32 Target: $400
 8% 

...


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-15-2021 , 04:41   ...
Reply With Quote #1

...

Last edited by Cristian505; 08-10-2022 at 14:16.
Cristian505 is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-15-2021 , 06:13   Re: ExecuteForward
Reply With Quote #2

Can you make sense out of your topic please?

I think you need to check if the player is a zombie before the execution of the zombie spawn forward.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 10-15-2021 at 06:15.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-15-2021 , 06:26   Re: ExecuteForward
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
Can you make sense out of your topic please?

I think you need to check if the player is a zombie before the execution of the zombie spawn forward.
I don't think that's it tho. His registration native doesn't return anything so likely g_husk and g_arachne are both 0.
If random_num returns 0 both if checks will pass and both messages will be printed.
If random_num returns 1 then nothing will get printed.
__________________

Last edited by HamletEagle; 10-15-2021 at 06:28.
HamletEagle is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-15-2021 , 06:27   Re: ExecuteForward
Reply With Quote #4

...

Last edited by Cristian505; 08-10-2022 at 14:16.
Cristian505 is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-15-2021 , 06:28   Re: ExecuteForward
Reply With Quote #5

...

Last edited by Cristian505; 08-10-2022 at 14:16.
Cristian505 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-15-2021 , 06:36   Re: ExecuteForward
Reply With Quote #6

I don't know what "this" is since you keep refusing to provide proper information about what it is that you are trying to do. Use words to describe WHAT YOU WANT TO DO, not code. Don't say something like "I want the forward to do x and y", make no reference to any coding-specific concepts. Describe the feature or functionality you want to implement in words like you would explain it to someone who knows nothing about coding, not how you think it should be implemented: https://en.wikipedia.org/wiki/XY_problem

You could make the native return the index at which each class was placed inside the dynamic array, which would make your tests pass, but I'm not sure if it will actually work later on since I don't know what you want to do.
__________________

Last edited by HamletEagle; 10-15-2021 at 06:39.
HamletEagle is offline
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-15-2021 , 06:49   Re: ExecuteForward
Reply With Quote #7

...

Last edited by Cristian505; 08-10-2022 at 14:16.
Cristian505 is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 10-15-2021 , 08:07   Re: ExecuteForward
Reply With Quote #8

Use words to describe WHAT YOU WANT TO DO, not code.
Don't say something like "I want the forward to do x and y"
make no reference to any coding-specific concepts
Describe the feature or functionality you want to implement in words like you would explain it to someone who knows nothing about coding

How many times do I need to repeat?

Also, there is no notion of "forward 1" or "forward 2". The code has only one forward. Please explain the idea and NOT HOW YOU WANT TO IMPLEMENT IT.
I can't help you unless I know what you want to achieve. What you are currently asking for does not make sense.
__________________

Last edited by HamletEagle; 10-15-2021 at 08:09.
HamletEagle is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 10-15-2021 , 08:14   Re: ExecuteForward
Reply With Quote #9

Quote:
Originally Posted by HamletEagle View Post
I don't think that's it tho. His registration native doesn't return anything so likely g_husk and g_arachne are both 0.
If random_num returns 0 both if checks will pass and both messages will be printed.
If random_num returns 1 then nothing will get printed.
His whole script is meaningless it seems like he's trying to copy zombie classes registration from the zombie mod.
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Cristian505
Senior Member
Join Date: Oct 2020
Old 10-15-2021 , 08:44   Re: ExecuteForward
Reply With Quote #10

...

Last edited by Cristian505; 08-10-2022 at 14:16.
Cristian505 is offline
Reply


Thread Tools
Display Modes

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 19:11.


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