String problems
#4

Quote:
Originally Posted by PrawkC
Посмотреть сообщение
pawn Код:
stock GetPlayerOrigin(playerid)
{
    new string[126];
    switch(PlayerInfo[playerid][Origin])
    {
        case 5: string = "Russia";
        case 4: string = "Africa";
        case 3: string = "Australian";
        case 2: string = "Europe";
        case 1: string = "America";
        case 0: string = "No Origin Specified";
        default: string = "None";
    }
    return string;
}
Must be a stock, a public cannot return a string.
Thank you handsome sir.
Reply


Messages In This Thread
String problems - by Jack_Leslie - 15.10.2011, 08:46
Re: String problems - by AeroBlast - 15.10.2011, 09:20
Re: String problems - by PrawkC - 15.10.2011, 09:20
Re: String problems - by Jack_Leslie - 15.10.2011, 09:35
Re: String problems - by Ash. - 15.10.2011, 09:38
Re: String problems - by Jack_Leslie - 15.10.2011, 09:45
Re: String problems - by Ash. - 15.10.2011, 09:50
Re: String problems - by GrimR - 15.10.2011, 10:13

Forum Jump:


Users browsing this thread: 2 Guest(s)