Returning string.
#4

Okay thanks, I did it like this way:
pawn Код:
stock GetNumberName(number) {
    switch(number) {
        case 0: return "Zero";
        case 1: return "one";
        case 2: return "two";
        default: return "invailid";
    }
}
and it sent me error. I hope this works :P Thanks.

EDIT: Yes, it works perfectly. Thank you.
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: 7 Guest(s)