Returning string.
#8

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Code fixed:

PHP код:
stock GetNumberName(10)
{
    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;

That code isn't good, where did that var 'number' come from. Anyways, thank you. Btw I didn't ask for that function lol.
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: 3 Guest(s)