[HELP] Repeating a function
Hi all, I need help because I'm trying to do something "I" complicated this problem and I've tried before, but with no solution, I'll post an example:
Code:
/* Plugin generated by AMXX-Studio */ |
Re: [HELP] Repeating a function
That is because FM_CmdStart is called multiple times per second.
|
Re: [HELP] Repeating a function
Quote:
An example would be the print_chat only occur once. |
Re: [HELP] Repeating a function
It would be much easier if you explain exactly what your trying to do.
|
Re: [HELP] Repeating a function
Explain what you are trying to accomplish.
Edit. Damn hornet you just beat me to the punch lol |
Re: [HELP] Repeating a function
Sorry, I knew I had to give an explanation ... This is the code I'm currently doing ...
I'm making something like a fire aura around the character using an entity type "env_sprite" with a sound created by a friend: Code:
/* Plugin generated by AMXX-Studio */PD: I've already try deleting the condition "is_user_alive" ... |
Re: [HELP] Repeating a function
The problem is that your trying to create a new entity several times per second. When really, you just need one entity per player, and have it follow that player. Easiest and most effective way - when the player spawns.
Also, this is why you never "post an example" of what your trying to do. Always provide any and every relevant detail to your issue to ensure that the users helping you understand what your trying to do and can help provide a solution. And in order to prevent what we have right here, known as the XY Problem. See how you go with this:
Spoiler
|
| All times are GMT -4. The time now is 10:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.