random_num ArrayGetString
Hey allied, can somone help me to get next model from array, this only make random, and also is it possible when i get next till end to start from first again thanx in advaance
PHP Code:
|
Re: random_num ArrayGetString
0 is the first string of the array
(ArraySize(g_sPropsModel) - 1) value is the last string of the array. rand_mdl + 1 will be the next string after the random string. I didn't understand what you mean exactly. |
Re: random_num ArrayGetString
Here is the function you want :
PHP Code:
PHP Code:
|
Re: random_num ArrayGetString
thanks a lot working great just spaming this errors idk how to fix, and i saw somthing now this error only start spaming when i get to last model and then come first model again. here is logs
Thx Connor again this working great, and i solved error! if( ++lastString > ArraySize(g_sPropsModel) ) to if( ++lastString >= ArraySize(g_sPropsModel) ) PHP Code:
|
Re: random_num ArrayGetString
Sure, i've fixed it in previous post.
I'm affraid when i see you are using this code in CmdStart hook oO |
Re: random_num ArrayGetString
Quote:
|
| All times are GMT -4. The time now is 23:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.