[HELP] Randomly select three terrorist
Hello, The following code selects random 3 live terrorist.I would like to choose the dead players.How can I do?
PHP Code:
|
Re: [HELP] Randomly select three terrorist
Your code is very inefficient, this is how you should do it:
PHP Code:
|
Re: [HELP] Randomly select three terrorist
Use charsmax instead of sizeof -1
|
Re: [HELP] Randomly select three terrorist
Quote:
string.inc: Code:
#define charsmax(%1) (sizeof(%1)-1) |
Re: [HELP] Randomly select three terrorist
I guess I could not tell.I want to randomly select 3 players different from each other.I gave my players not dead code.I would like to take this to the players dead :|
|
Re: [HELP] Randomly select three terrorist
Did you check my code? It should do what you requested (randomly selects up to 3 dead terrorists).
|
Re: [HELP] Randomly select three terrorist
@Sylwester
I tried yours."Rasgele 0 Mahkum : ----" I do not get a result. |
Re: [HELP] Randomly select three terrorist
To get results you need to have dead terrorists on your server.
|
Re: [HELP] Randomly select three terrorist
For both live and dead I wanted to make a selection.
|
Re: [HELP] Randomly select three terrorist
I solved the problem.Thank those who help :)
PHP Code:
PHP Code:
|
| All times are GMT -4. The time now is 08:34. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.