19.03.2013, 21:13
pawn Код:
case ListAccountsDialog:
{
if (!response)
{
Kick(playerid);
}
else
{
print(inputtext);
if(!strcmp(inputtext, LoginPlayerName[playerid][1]))
{
print("1");
LoadCharacterStats(playerid, LoginPlayerName[playerid][1]);
}
else if(!strcmp(inputtext, LoginPlayerName[playerid][2]))
{
print("2");
LoadCharacterStats(playerid, LoginPlayerName[playerid][2]);
}
else if(!strcmp(inputtext, LoginPlayerName[playerid][3]))
{
print("3");
LoadCharacterStats(playerid, LoginPlayerName[playerid][3]);
}
else if(!strcmp(inputtext, "Register a new character"))
{
print("4");
ShowPlayerDialog(playerid, RegisterNewCharacter, DIALOG_STYLE_INPUT, "New Character", "Type in your new characters name", "Next", "Back");
}
}
return 1;
}
I've never encountered anything like this before, so I'm thankful for all the help I can get.