[AJUDA] salvando senha Cache FINI
#1

Ta dando esses 2 ERROS alguem sabe o q ta errado.
pawn Код:
D:\Servers\Samp\gamemodes\EmConstruзao.pwn(2582) : error 035: argument type mismatch (argument 2)
D:\Servers\Samp\gamemodes\EmConstruзao.pwn(2814) : error 006: must be assigned to an array
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


2 Errors.
Linhas do ERRO \/

Linha 2582
PHP код:
public OnPlayerRegister(playeridpassword[])
{
    if(
IsPlayerConnected(playerid))
    {
        new 
string3[32];
        
format(string3sizeof(string3), "Contas/%s.ini"pNome(playerid));
        
Fini_Create(string3);
        new 
password2 Encrypt(password);
        
PlayerInfo[playerid][pSenha] = password2;
        
Fini_OpenFile(string3);
//=>linha    Fini_SetStr("Senha", password2); 
Linha 2814
PHP код:
public OnPlayerLogin(playerid,password[])
{
    new 
string3[32];
    new 
string2[64];
    new 
tmp2[64];
    
format(string3sizeof(string3), "Contas/%s.ini"pNome(playerid));
    if(
Fini_OpenFile(string3))
    {
        if(
strcmp(password,Fini_GetStr("Senha"), true) == 0)
        {
//=>linha        PlayerInfo[playerid][pSenha] = Fini_GetStr("Senha"); 
PHP код:
enum pInfo
{
    
pSenha,

@EDIT

Responsavel pela incriptaзгo
PHP код:
public Encrypt(string[])
{
    for(new 
x=0strlen(string); x++)
      {
          
string[x] += (3^x) * (15);
          if(
string[x] > (0xff))
          {
              
string[x] -= 256;
          }
      }
    return 
1;

Reply


Messages In This Thread
[AJUDA] salvando senha Cache FINI - by lucas_mdr1235 - 23.10.2011, 12:44
Re: [AJUDA] salvando senha Cache FINI - by [S]trong - 23.10.2011, 13:13
Re: [AJUDA] salvando senha Cache FINI - by lucas_mdr1235 - 23.10.2011, 13:16
Re: [AJUDA] salvando senha Cache FINI - by [S]trong - 23.10.2011, 13:17
Re: [AJUDA] salvando senha Cache FINI - by lucas_mdr1235 - 23.10.2011, 13:29

Forum Jump:


Users browsing this thread: 4 Guest(s)