15.07.2011, 14:06
Sorry, I made a mistake. Now it's correct:
PHP код:
stock GetNumberName(number)
{
new string[25];
switch(number)
{
case 0: format(string, sizeof string, "Zero");
case 1: format(string, sizeof string, "One");
case 2: format(string, sizeof string, "Two");
default: format(string, sizeof string, "Invalid");
}
return string;
}