Run time error 4: index out of bounds
Quote:
Code:
public CmdShowVoteMenu() |
Re: Run time error 4: index out of bounds
1. Don't do a players loop like this. Use get_players.
2. Maybe you shoud check is player is connected/alive. |
Re: Run time error 4: index out of bounds
Quote:
Give me another option to loop that I always use that. |
Re: Run time error 4: index out of bounds
Quote:
|
Re: Run time error 4: index out of bounds
Does not seem to me, to do check alive player's to votedays.
i set Connected and I will check it.. And as for CmdGgDay I have no idea .. |
Re: Run time error 4: index out of bounds
Code:
For 1: Code:
|
Re: Run time error 4: index out of bounds
post in thread
|
Re: Run time error 4: index out of bounds
Did you check the values that are being used to index ALL of the arrays in your function which is causing the errors?
|
Re: Run time error 4: index out of bounds
This won't fix your problem, but shouldn't
Code:
g_iCurrentDay = g_iSelectedDays[ random( sizeof g_iSelectedDays ) ];Code:
g_iCurrentDay = g_iSelectedDays[ random( charsmax(g_iSelectedDays) ) ]; |
Re: Run time error 4: index out of bounds
Quote:
|
| All times are GMT -4. The time now is 13:17. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.