10.08.2014, 14:56
Hi!
Why this don't work?
When I log-in, the message is "Crea un personaggio" that in english is "Create a Character".
But in my account, there's the name of the character created...
What can I do?
Why this don't work?
When I log-in, the message is "Crea un personaggio" that in english is "Create a Character".
But in my account, there's the name of the character created...
pawn Код:
if(mysql_retrieve_row())
{
new nome[256];
new nome2[256];
new nome3[256];
mysql_fetch_field_row(nome, "nomepersonaggio1");
mysql_fetch_field_row(nome2, "nomepersonaggio2");
mysql_fetch_field_row(nome3, "nomepersonaggio3");
PlayerInfo[playerid][pNomePersonaggio1] = nome[123];
PlayerInfo[playerid][pNomePersonaggio2] = nome2[123];
PlayerInfo[playerid][pNomePersonaggio3] = nome3[123];
}
if(gLoggato[playerid] == 0)
{
//Encrypt(tmppass);
new string1[197];
if(PlayerInfo[playerid][pNomePersonaggio2] == 0)
{
format(string1,sizeof(string1),"%s\n- Crea un personaggio -\n%s",PlayerInfo[playerid][pNomePersonaggio1], PlayerInfo[playerid][pNomePersonaggio3]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}
else if(PlayerInfo[playerid][pNomePersonaggio3] == 0)
{
format(string1,sizeof(string1),"%s\n%s\n- Crea un personaggio -",PlayerInfo[playerid][pNomePersonaggio1], PlayerInfo[playerid][pNomePersonaggio2]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}
else if(PlayerInfo[playerid][pNomePersonaggio1] == 0)
{
format(string1,sizeof(string1),"- Crea un personaggio -\n%s\n%s",PlayerInfo[playerid][pNomePersonaggio2], PlayerInfo[playerid][pNomePersonaggio3]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}
else if(PlayerInfo[playerid][pNomePersonaggio1] == 0 && PlayerInfo[playerid][pNomePersonaggio2] == 0)
{
format(string1,sizeof(string1),"- Crea un personaggio -\n- Crea un personaggio -\n%s", PlayerInfo[playerid][pNomePersonaggio3]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}
else if(PlayerInfo[playerid][pNomePersonaggio1] == 0 && PlayerInfo[playerid][pNomePersonaggio3] == 0)
{
format(string1,sizeof(string1),"- Crea un personaggio -\n%s\n- Crea un personaggio -", PlayerInfo[playerid][pNomePersonaggio2]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}
else if(PlayerInfo[playerid][pNomePersonaggio2] == 0 && PlayerInfo[playerid][pNomePersonaggio3] == 0)
{
format(string1,sizeof(string1),"%s\n- Crea un personaggio -\n- Crea un personaggio -", PlayerInfo[playerid][pNomePersonaggio1]);
ShowPlayerDialog(playerid, DIALOG_SCELTAPERSONAGGIO, DIALOG_STYLE_LIST, "{00C0FF}Scegli il tuo personaggio",string1, "Scegli", "Esci");
}