Odd problem concerning writing an integer while playing
#2

Whats wrong with it??

Ah i know, you've put two " instead of 1

Should be
Код:
CMD:changepassword(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, -1, "#LIME"<CMD USAGE> "#WHITE"/changepassword <new password>");
        
    accInfo[playerid][Passcode] = udb_hash(params);
    
    new
        INI:accFile = INI_Open(find_accPath(playerid) );
        
    INI_WriteInt(accFile,   "Passcode",     udb_hash(params) ); 
        
    INI_Close(accFile);
    return true;
}
Instead Of
Код:
CMD:changepassword(playerid, params[])
{
    if(isnull(params))
        return SendClientMessage(playerid, -1, ""#LIME"<CMD USAGE> "#WHITE"/changepassword <new password>");
        
    accInfo[playerid][Passcode] = udb_hash(params);
    
    new
        INI:accFile = INI_Open(find_accPath(playerid) );
        
    INI_WriteInt(accFile,   "Passcode",     udb_hash(params) ); 
        
    INI_Close(accFile);
    return true;
}
Reply


Messages In This Thread
Odd problem concerning writing an integer while playing - by 2KY - 12.02.2012, 17:55
Re: Odd problem concerning writing an integer while playing - by SomeGuy#1 - 12.02.2012, 17:55
Re: Odd problem concerning writing an integer while playing - by 2KY - 12.02.2012, 17:57
Re: Odd problem concerning writing an integer while playing - by Madd Kat - 12.02.2012, 17:57
Re: Odd problem concerning writing an integer while playing - by 2KY - 12.02.2012, 18:00
Re: Odd problem concerning writing an integer while playing - by Madd Kat - 12.02.2012, 18:01

Forum Jump:


Users browsing this thread: