[HELP] /changepass 1 Error
#2

You're trying to load an Integer with a string, thats the problem.
Try
pawn Код:
if(!strcmp(strget(cmdtext,0),"/changepass"))
    {
    if(!strlen(strget(cmdtext,1))) return SendClientMessage(playerid,COLOR_GREY,"Use: /changepass [Password]");
    new name[MAX_PLAYER_NAME];
    new accFormat[128];
    new pass = strval(strget(cmdtext,1));
    new string[128];
    GetPlayerName(playerid,name,sizeof(name));
    format(accFormat,sizeof(accFormat),"/Players/%s.datei",name);
    format(string,sizeof(string),"%s",pass);
    dini_Set(accFormat,"Passwort",string); // dini_IntSet -> dini_Set
    return 1;
}
Reply


Messages In This Thread
[HELP] /changepass 1 Error - by ]B4E[kengston - 08.01.2011, 01:19
Re: [HELP] /changepass 1 Error - by Padarom - 08.01.2011, 01:26
AW: [HELP] /changepass 1 Error - by ]B4E[kengston - 08.01.2011, 01:28
Re: [HELP] /changepass 1 Error - by Padarom - 08.01.2011, 01:35

Forum Jump:


Users browsing this thread: 1 Guest(s)