15.10.2011, 08:46
I have this string:
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 Код:
format(string, sizeof(string), "Your origin is %s.", GetPlayerOrigin(playerid));
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;
}