Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*----------------------------------------
- *
- * Manager Arrays (Gerenciar Arrays)
- * Criado por DraKiNs (by DraKiNs)
- * (c) Copyright 2011, [iPs]TeaM
- *
- /*-------------------------------------- */
- iAddIterator(var[], iter)
- {
- for(new i; i < sizeof(var) - 1; ++i) {
- if(!(var[i] == -1)) continue;
- var[i + 1] = var[i],var[i] = iter;
- break;
- }
- return true;
- }
- iDelIterator(var[],iter)
- {
- for(new i; i < sizeof(var) - 1; ++i) {
- while(var[++i] == iter && i < sizeof(var) - 1) {
- var[ i ] ^= var[i+1],var[i+1] ^= var[ i ],var[ i ] ^= var[i+1];
- }
- i-=1;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement