Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new
- pFila[MAX_PLAYERS],
- iTotalPlayersFila = 0xFFFFFFFF
- ;
- #define JogadoresFila(%0) for(new %0_, %0; %0_ < (iTotalPlayersFila + 1); %0_++, %0 = pFila[%0_])
- #define AddPlayerFila(%0) pFila[++iTotalPlayersFila] = %0
- #define RemPlayerFila(%0) DeleteIterator(%0)
- DeleteIterator(iter)
- {
- for(new i; i < (sizeof(pFila)-1); ++i) {
- while(pFila[++i] == iter && i < (sizeof(pFila)-1)) {
- pFila[ i ] ^= pFila[i+1],pFila[i+1] ^= pFila[ i ],pFila[ i ] ^= pFila[i+1];
- }
- i -= 1;
- }
- return true;
- }
- /*
- Exemplo:
- JogadoresFila(i)
- {
- printf("JOGADOR ID %d - NUMERO FILA %d", i, i_);
- }
- // By DraKiNs
- // www.ips-team.blogspot.com
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement