Some stupid errors, need a help
#9

From what I see, your password should be a string and not a number.

Switch to:
pawn Код:
forward OnPlayerLogin(playerid, password[]);
public OnPlayerLogin(playerid, password[])
pawn Код:
new tmppass[64];
// assign the password
OnPlayerLogin(playerid,tmppass);// It won't give arror anymore, since you parse a string in it.
pawn Код:
public OnPlayerLogin(playerid, password[])
{
    new string2[256], keystring[256];
    format(string2, sizeof(string2), "%s.ini", PlayerName(playerid));
    keystring = dini_Get(string2, "Key");
    if(strcmp(keystring, password, true) == 0) // I assume that's the password check string1 is equal to string2
    {
pawn Код:
new tmp[64];
strmid(tmp, inputtext, 0, strlen(inputtext), 255);
OnPlayerLogin(playerid,tmp);// Insert a string will prevent the error
Reply


Messages In This Thread
Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 14:32
Re : Some stupid errors, need a help - by Chadi - 06.07.2013, 14:49
Re: Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 15:16
Re: Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 17:28
Re: Some stupid errors, need a help - by Konstantinos - 06.07.2013, 17:30
Re: Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 17:44
Re: Some stupid errors, need a help - by Konstantinos - 06.07.2013, 17:49
Re: Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 18:17
Re: Some stupid errors, need a help - by Konstantinos - 06.07.2013, 19:34
Re: Some stupid errors, need a help - by Yordan_Kronos - 06.07.2013, 21:28

Forum Jump:


Users browsing this thread: 5 Guest(s)