25.12.2014, 16:30
A short example how to get last 10 reports/numbers/.. of anything.
To test it i added it under the main() part. You can add it then in your command.
That was the output:
Means, it will always show you the last reports.
This is just an example how you can make it, now you need to write by yourself a code for it. I hope i made it understandable.
To test it i added it under the main() part. You can add it then in your command.
pawn Код:
main()
{
new reports = 30; //You have 30 reports in your database.
new a = reports -9;//You want to get the last 10 reports. 9 because you need to count also the newest report. That's the reason we use a<= reports, bc the last report should also be shown.
while( a<=reports)
{
printf("%i",a);
a++;
}
return 1;
}
Код:
21 22 23 24 25 26 27 28 29 30
This is just an example how you can make it, now you need to write by yourself a code for it. I hope i made it understandable.