19.11.2014, 19:37
Tipo Criei uma parte no meu Registro do meu server que tipo o player digita o nome dele no forum e se nao tiver deicha em branco mais o poblema e q tipo nao ta salvano olha:
Esse e o sistema
e esse e onde ta o dialog
E quando entro no server e registro e ponho o meu nome do forum e no papelsinho da conta fica sem o nome que eu pus olha o print:
Esse e o sistema
PHP код:
if(dialogid == 6648)
{
if(response)
{
PlayerInfo[playerid][pNomeForum]
ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX, "Origem", "Escolha a Origem de Seu Personagem ?\n\n{FF0000}[Estaзгo | Perto da Prefeitura]{FFFFFF}<-\n{00FF00}[Metro | Perto da Auto Escola]{FFFFFF}<-", "Estaзгo", "Metro");
return true;
}
}
PHP код:
if(dialogid == 9)
{
if(response == 0)
{
TogglePlayerControllable(playerid, 0);
ClearChatbox(playerid, 100);
PlayerInfo[playerid][pSex] = 1;
SetPlayerSkin(playerid, 56);//Civil Mulher
PlayerInfo[playerid][pSkin] = 56;//Civil Mulher
SetPlayerInterior(playerid, 0);
TextDrawHideForPlayer(playerid, forum[playerid]);
SetPlayerAttachedObject(playerid , 1 , 3026 , 1,-0.16, -0.08, 0.0, 0.5, 0.5, 0.0, 1.0, 1.3, 1.0, -1, 0);
SetTimerEx("MochilaCivil2", 200000, 0, "i", playerid);
ShowPlayerDialog(playerid, 6648, DIALOG_STYLE_INPUT, "Informe seu Nome no Forum", "Ja tem uma Conta Registrada no Forum ?\n{FF8040}Informe da Sua Conta no Forum\nPara Salvar em seu RG\nCaso Nгo tenha Deixe em Branco!", "Ok", "");
return true;
}
if(response == 1)
{
TogglePlayerControllable(playerid, 0);
ClearChatbox(playerid, 100);
PlayerInfo[playerid][pSex] = 2;
SetPlayerSkin(playerid, 23);//Civil Homen
PlayerInfo[playerid][pSkin] = 23;//Civil Homen
SetPlayerInterior(playerid, 0);
TextDrawHideForPlayer(playerid, forum[playerid]);
SetPlayerAttachedObject(playerid , 1 , 3026 , 1,-0.16, -0.08, 0.0, 0.5, 0.5, 0.0, 1.0, 1.3, 1.0, -1, 0);
SetTimerEx("MochilaCivil2", 200000, 0, "i", playerid);
ShowPlayerDialog(playerid, 6648, DIALOG_STYLE_INPUT, "Informe seu Nome no Forum", "Ja tem uma Conta Registrada no Forum ?\n{FF8040}Informe da Sua Conta no Forum\nPara Salvar em seu RG\nCaso Nгo tenha Deixe em Branco!", "Ok", "");
return true;
}
return true;
}
