Your opinion needed
#3

Quote:
Originally Posted by SEnergy
Посмотреть сообщение
pawn Код:
for(i=0;AllPlayers[i]!=-1;i++){}
        AllPlayers[i]=playerid;
        AllPlayers[i+1]=-1;
what is this supposed to do?
That code loops AllPlayers array until the AllPlayers[i]!=-1. In other words, it finds the first place in the array, where there is not stored any playerid.(playerid are from 0 to 499).
After finding it, it stores the playerid in the "free" array space, and make sure the next cell is free.
After seeing your question I realized I missed one part of the code. Edited first post.
Reply


Messages In This Thread
Your opinion needed - by Roko_foko - 30.07.2012, 08:18
Re: Your opinion needed - by SEnergy - 30.07.2012, 08:20
Re: Your opinion needed - by Roko_foko - 30.07.2012, 08:28
Re: Your opinion needed - by SEnergy - 30.07.2012, 08:35
Re: Your opinion needed - by Roko_foko - 30.07.2012, 08:36
Re: Your opinion needed - by SEnergy - 30.07.2012, 08:42
Re: Your opinion needed - by [MM]RoXoR[FS] - 30.07.2012, 09:50
Re: Your opinion needed - by Roko_foko - 30.07.2012, 10:05

Forum Jump:


Users browsing this thread: 1 Guest(s)