17.06.2015, 18:41
Hello! I have a big problem, I'm setting something easy, and is giving error ..
is something standard, and I can not change, I've tried to put anyway ..
Код:
C:\Users\2\Desktop\gamemode\gamemodes\2.pwn(23907) : error 047: array sizes do not match, or destination array is too small Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error.
PHP код:
PlayerInfo[playerid][pKey] = tmppass;
///
PlayerInfo[playerid][pKey] = strlen(inputtext);
PHP код:
if (strlen(inputtext))
{
new tmppass[64];
strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
Encrypt(tmppass);
PlayerInfo[playerid][pKey] = tmppass; //error
SendClientMessage(playerid, -1, "<!> Password changed successfully.");
}
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;
}