Quote:
Originally Posted by Shadoww5
Code fixed:
PHP код:
stock GetNumberName(10)
{
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;
}
|
That code isn't good, where did that var 'number' come from. Anyways, thank you. Btw I didn't ask for that function lol.