Raised This Month: $ Target: $400
 0% 

waiting list


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 11-02-2014 , 08:34   Re: waiting list
Reply With Quote #4

This is how vectors work, in case you don't already know. For any other requests, visit "Suggestions/ Requests" category.

PHP Code:
new Array:Container;

main()
  
Container ArrayCreate();

exit()
  
ArrayDestroy(Container);

push_back(playerId)
  
ArrayPushCell(ContainerplayerId);

get_from_tail()
  return 
ArrayGetCell(ContainerArraySize(Container) - 1);

iterate(bool:Ascending true)
{
  new 
playerIdi;
  if (
Ascending)
  {
    for (
0ArraySize(Container); i++)
      
playerId ArrayGetCell(Containeri);
  } else {
    for (
ArraySize(Container) - 1>= 0i--)
      
playerId ArrayGetCell(Containeri);
  }

__________________

Last edited by claudiuhks; 11-02-2014 at 08:38.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
 



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 17:30.


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