06.06.2010, 15:30
pawn Код:
stock GetNeededWordEx(number,word[])
{
new ostatok = number % 100;
new out[50];
strcat(out,word);
if((ostatok > 10) && (ostatok < 20)) strcat(out,"ов");
else
{
switch(ostatok % 10)
{
case 0: strcat(out,"ов");
case 2..4: strcat(out,"а");
case 5..9: strcat(out,"ов");
}
}
return out;
}