21.12.2009, 14:42
Hey,
Here's my code:
And CheckPlayerPIN(...):
error 048: array dimensions do not match
Here's my code:
pawn Код:
new pin[255]; // I tried changing this value to MAX_STRING, but I get same error...
if(CheckPlayerPIN(pName,pin) == 0) ErrorMsg(playerid,"Your PIN code is incorrect!"); //ERROR HERE
pawn Код:
stock CheckPlayerPIN(Owner[],pin[])
{
if(!dini_Exists(Owner)) return -1;
new tmp[255];
tmp = dini_Get(Owner,"AccountPass");
if(!strcmp(tmp,pin,true)) return 1;
return 0;
}