SA-MP Forums Archive
Changing password problem - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Changing password problem (/showthread.php?tid=130770)



Changing password problem - Naruto4 - 28.02.2010

Code:
if(dialogid == 12)
     		{
					new file[128], pname[MAX_PLAYER_NAME];
					new string[128];
  				GetPlayerName(playerid, pname, sizeof(pname));
  				format(file, sizeof(file), "\\Users\\%s.ini", pname);
  				dini_IntSet(file, "Password", udb_hash(inputtext));
  				format(string,128,"[Saved]: Your new password has been saved. PW: %d",strval(inputtext));
  				SendClientMessage(playerid,GREEN,string);
  				PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  				return 1;
				}



Re: Changing password problem - whitedragon - 28.02.2010

why you have \\ why nou 1 \


Re: Changing password problem - bajskorv123 - 28.02.2010

pawn Code:
if(dialogid == 12)
{
  new file[128], pname[MAX_PLAYER_NAME];
  new string[128];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\Users\%s.ini", pname);
  dini_IntSet(file, "Password", udb_hash(inputtext));
  format(string,128,"[Saved]: Your new password has been saved. PW: %d",strval(inputtext));
  SendClientMessage(playerid,GREEN,string);
  PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  return 1;
}



Re: Changing password problem - [NL]Bank - 28.02.2010

Quote:
Originally Posted by [NWA
Hannes ]
pawn Code:
if(dialogid == 12)
{
  new file[128], pname[MAX_PLAYER_NAME];
  new string[128];
  GetPlayerName(playerid, pname, sizeof(pname));
  format(file, sizeof(file), "\Users\%s.ini", pname);
  [b]dini_IntSet(file, "Password", udb_hash(inputtext));[/b]
  format(string,128,"[Saved]: Your new password has been saved. PW: %d",strval(inputtext));
  SendClientMessage(playerid,GREEN,string);
  PlayerPlaySound(playerid,1057,0.0,0.0,0.0);
  return 1;
}
This need to be: dini_Set();


Re: Changing password problem - Naruto4 - 28.02.2010

There should be \\ else
Code:
C:\Users\Crash7\Desktop\LSLife\gamemodes\rp2.pwn(3411) : error 027: invalid character constant
C:\Users\Crash7\Desktop\LSLife\gamemodes\rp2.pwn(3411) : error 027: invalid character constant
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase

2 Errors.
and i added if(!IsNumeric...
so it will be dini_IntSet but doesnt work