23.10.2011, 12:44
Ta dando esses 2 ERROS alguem sabe o q ta errado.
Linhas do ERRO \/
Linha 2582
Linha 2814
@EDIT
Responsavel pela incriptaзгo
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.
Linha 2582
PHP код:
public OnPlayerRegister(playerid, password[])
{
if(IsPlayerConnected(playerid))
{
new string3[32];
format(string3, sizeof(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);
PHP код:
public OnPlayerLogin(playerid,password[])
{
new string3[32];
new string2[64];
new tmp2[64];
format(string3, sizeof(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,
}
Responsavel pela incriptaзгo
PHP код:
public Encrypt(string[])
{
for(new x=0; x < strlen(string); x++)
{
string[x] += (3^x) * (x % 15);
if(string[x] > (0xff))
{
string[x] -= 256;
}
}
return 1;
}