Returning string.
#7

Code fixed:

PHP код:
stock GetNumberName(number)
{
    new 
string[25];
    switch(
number)
    {
        case 
0format(stringsizeof string"Zero");
        case 
1format(stringsizeof string"One");
        case 
2format(stringsizeof string"Two");
        default: 
format(stringsizeof string"Invalid");
    }
    return 
string;

Reply


Messages In This Thread
Returning string. - by Roko_foko - 15.07.2011, 13:14
Re: Returning string. - by jameskmonger - 15.07.2011, 13:21
Re: Returning string. - by CyNiC - 15.07.2011, 13:23
Re: Returning string. - by Roko_foko - 15.07.2011, 13:25
Re: Returning string. - by jameskmonger - 15.07.2011, 13:26
Re: Returning string. - by [MG]Dimi - 15.07.2011, 13:27
Re: Returning string. - by Shadoww5 - 15.07.2011, 13:32
Re: Returning string. - by Roko_foko - 15.07.2011, 13:56
Re: Returning string. - by Shadoww5 - 15.07.2011, 14:06
Re: Returning string. - by jameskmonger - 15.07.2011, 16:05

Forum Jump:


Users browsing this thread: 5 Guest(s)