17.04.2010, 12:40
When i have this for example:
How can i get the bigest number out of it?
I though of something like this, but would that work?
Код:
new Float:Test[10][1] = { {0}, {0}, {7}, {1}, {8}, {4}, {2}, {3}, {3}, {8} };
I though of something like this, but would that work?
Код:
GetBigestNumber() { new number; for(new k; k < MAX_MAPS; k++) { for(new d; d < MAX_MAPS; d++) { if(Test[k] >= Test[d]) number = Test[k]; } } return number; }