Vote menu countdown
good, I'm trying to make a menu with a countdown, until now I have achieved this, but has some problems which I will number:
1- the menu does not update the regressive time 2- players can vote again until those two moments if you can optimize or improve please do it PHP Code:
|
Re: Vote menu countdown
PHP Code:
|
Re: Vote menu countdown
Quote:
error 022: must be lvalue <non-constant> line 132: num_to_str(++str_to_num(szYesVotes), szYesVotes, charsmax(szYesVotes)); line 137: num_to_str(++str_to_num(szNoVotes), szNoVotes, charsmax(szNoVotes)); |
Re: Vote menu countdown
Code updated try again.
|
Re: Vote menu countdown
Quote:
|
Re: Vote menu countdown
Quote:
|
Re: Vote menu countdown
Quote:
hey I realized that when the player has already voted, he can not select the grenades or weapons by means of the numbers or buttons, this can be fixed |
Re: Vote menu countdown
Quote:
I think 1st problem is solved, 2th problem is not because there is a bug in new amxx menu with amx_addtext I removed it and moved the countdown timer to item two using new line character to separate them. Menu should now been shown to dead players also. |
Re: Vote menu countdown
Quote:
I remove this function from RD_FinishVote and it works fine, now tell me if it is ok or not, this is the function: PHP Code:
|
Re: Vote menu countdown
Quote:
This has nothing to do with not showing the option NO I just deleted the option NO by accident I readded it . Code updated. The thing you removed is just a safe check to not throw an error invalid menu id. Everything is hard to modify when you're using a phone |
| All times are GMT -4. The time now is 17:22. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.