Raised This Month: $ Target: $400
 0% 

waiting list


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
omgdpcwtf
Member
Join Date: Apr 2011
Old 10-30-2014 , 16:32   waiting list
Reply With Quote #1

Hi,
I wanna make waiting list for DeathRun duel, but I dont know how. Does somebody has some ideas and examples how do it?

explanation: First CT came to button and pressed it. Duel is active. Then came another CT and pressed button (here I need to set him to waiting list, if first CT will die second CT starts duel with T) then it continues to third CT, fourth CT.....

Last edited by omgdpcwtf; 10-30-2014 at 16:33.
omgdpcwtf is offline
Old 11-01-2014, 13:47
omgdpcwtf
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Old 11-02-2014, 08:12
omgdpcwtf
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
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
omgdpcwtf
Member
Join Date: Apr 2011
Old 11-09-2014 , 07:03   Re: waiting list
Reply With Quote #5

Anyone else any ideas? IDK how arrays works and how use it with messages.
omgdpcwtf is offline
Old 11-13-2014, 09:58
omgdpcwtf
This message has been deleted by YamiKaitou. Reason: wait 14 days before you bump
Reply



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