Raised This Month: $ Target: $400
 0% 

random_num ArrayGetString


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-22-2013 , 13:56   Re: random_num ArrayGetString
Reply With Quote #3

Here is the function you want :
PHP Code:
pickup_next_ent_model(model[], length)
{
    static 
lastString = -1;

    if( ++
lastString >= ArraySize(g_sPropsModel) )
    {
        
lastString 0;
    }

    
ArrayGetString(g_sPropsModellastStringmodellength);  

And here is how you gonna use it in your code :
PHP Code:
pickup_next_ent_model(szEntModelcharsmax(szEntModel)); 
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-22-2013 at 17:42.
ConnorMcLeod is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:20.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode