20.09.2010, 20:18
Quote:
Info (returnOrdinal) (updated)
Returns the ordinal form of a number. Code pawn Код:
pawn Код:
pawn Код:
NOTE: This is an update on this: http://forum.sa-mp.com/showpost.php?...&postcount=907 So if someone is using it, please switch to this one because it's working almost 2 times faster. @DarK TeaM PT: No, I didn't see you returned an integer. |
pawn Код:
new
str[128],
Count;
for(new i = -100; i < 0; i++)
{
format(str, sizeof str, "%s %d'%s", str, i, returnOrdinal(i));
Count++;
if(Count == 10)
{
print(str);
Count = 0;
str[0] = '\0';
}
}
Код:
-100'th -99'st -98'nd -97'rd -96'th -95'th -94'th -93'th -92'th -91'th -90'th -89'th -88'th -87'th -86'th -85'th -84'th -83'th -82'th -81'th -80'th -79'st -78'nd -77'rd -76'th -75'th -74'th -73'th -72'th -71'th -70'th -69'st -68'nd -67'rd -66'th -65'th -64'th -63'th -62'th -61'th -60'th -59'st -58'nd -57'rd -56'th -55'th -54'th -53'th -52'th -51'th -50'th -49'st -48'nd -47'rd -46'th -45'th -44'th -43'th -42'th -41'th -40'th -39'st -38'nd -37'rd -36'th -35'th -34'th -33'th -32'th -31'th -30'th -29'st -28'nd -27'rd -26'th -25'th -24'th -23'th -22'th -21'th -20'th -19'st -18'nd -17'rd -16'th -15'th -14'th -13'th -12'th -11'th -10'th -9'st -8'nd -7'rd -6'th -5'th -4'th -3'th -2'th -1'th
Try:http://forum.sa-mp.com/showpost.php?...postcount=1121