[Ajuda] must be assigned to an array
#3

Quote:
Originally Posted by FerrariL
Посмотреть сообщение
Como essa variбvel foi declarada ? pSenha,deve estar como string.
Variaveis

PHP код:
enum Infos{
    
pSenha,
    
pDinheiro,
    
pScore,
    
pSkin,
    
Float:pPosX,
    
Float:pPosY,
    
Float:pPosZ,
    
Float:pPosA,
    
pVirtualWorld,
    
pInterior
}
new 
pInfos[MAX_PLAYERS][Infos];
new 
Erro[MAX_PLAYERS]; 
PHP код:
    if(dialogid == DIALOG_REGISTRO)
    {
    if(
strval(inputtext) < 4)
    {
    
ShowPlayerDialog(playeridDIALOG_REGISTRODIALOG_STYLE_INPUT"Bem-Vindo""Seja bem-vindo jogador!\nDigite uma senha abaixo para se registrar  em nosso servidor.""Confirmar""Sair");
    
SendClientMessage(playerid0xFF0000AA,"|ERRO|Sua senha precisa ter no minimo 4 caracteres!");
    return 
1;
    }
    if(!
response)
    {
    
Kick(playerid);
    return 
1;
    }else{
    
pInfos[playerid][pSenha] = strval(inputtext);
    
DOF2_CreateFile(arquivo);
    
DOF2_SetString(arquivo"Senha"pInfos[playerid][pSenha]); // Aqui bb
    
DOF2_SetInt(arquivo"Dinheiro"pInfos[playerid][pDinheiro]);
    
DOF2_SetInt(arquivo"Skin"23);
    
DOF2_SetInt(arquivo"Score"pInfos[playerid][pScore]);
    
DOF2_SaveFile();
    
SendClientMessage(playerid0xFF8080AA,"|SERVER|Sua conta foi criada com sucesso!");
    
SpawnPlayer(playerid);
    
SetPlayerPos(playerid,1172.6566,-1323.3835,15.4025);
    }
    } 
Reply


Messages In This Thread
must be assigned to an array - by Cauezin - 30.03.2018, 16:42
Re: must be assigned to an array - by FerrariL - 30.03.2018, 16:46
Re: must be assigned to an array - by Cauezin - 30.03.2018, 16:48
Re: must be assigned to an array - by FerrariL - 30.03.2018, 16:51
Re: must be assigned to an array - by Cauezin - 30.03.2018, 17:20
Re: must be assigned to an array - by FerrariL - 30.03.2018, 17:30
Re: must be assigned to an array - by Cauezin - 30.03.2018, 18:37
Re: must be assigned to an array - by AllanSG - 30.03.2018, 19:11
Re: must be assigned to an array - by FerrariL - 30.03.2018, 19:39
Re: must be assigned to an array - by AllanSG - 30.03.2018, 20:13

Forum Jump:


Users browsing this thread: 2 Guest(s)