String problems
#1

I have this string:
pawn Код:
format(string, sizeof(string), "Your origin is %s.", GetPlayerOrigin(playerid));
It's meant to switch between the enum values (which are right, I debugged them) and output the string but it doesn't. here's the getplayerorigin:

pawn Код:
public 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 1;
}
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: 1 Guest(s)