Changing password problem
#1

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;
				}
Reply
#2

why you have \\ why nou 1 \
Reply
#3

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;
}
Reply
#4

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();
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)