13.03.2013, 17:37
pawn Код:
#include <a_samp>
#include <foreach>
#define A 10
#define B 5
new Iterator:Foo[A]<B>;
main() {
Iter_Init(Foo);
for(new i = 0; i != A; ++i) {
for(new j = 0; j != B; ++j) {
Iter_Add(Foo[i], j);
}
}
}
#include <a_samp>
#include <foreach>
#define A 10
#define B 5
new Iterator:Foo[A]<B>;
main() {
Iter_Init(Foo);
for(new i = 0; i != A; ++i) {
for(new j = 0; j != B; ++j) {
Iter_Add(Foo[i], j);
}
}
}
new Iterator:PlayerVehicles[MAX_PLAYERS+1]<MAX_VEHICLES+1>;
new IteratorArray:PlayerVehicles[MAX_PLAYERS]<MAX_VEHICLES>;