Weird 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: Weird Problem (
/showthread.php?tid=123047)
Weird Problem -
Torran - 24.01.2010
I followed this adminscript tutorial,
And if i type /register [password] ingame,
Ofcourse i replace [password] with my actual password,
But it says this ingame:
ERROR: Password must be between 0 and $d characters long!
The line that triggers that is:
pawn Код:
new string[200];
format(string, sizeof(string), "ERROR: Password must be between %d and $d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
return SendClientMessage(playerid, COLOUR_ORANGE, string);
And uses:
pawn Код:
else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
I cant find anything else, Well i can, But nowhere to see the limit and/or to change it
EDIT: It says between 0 and $d should i change that to %d or leave it
Re: Weird Problem -
Nakash - 24.01.2010
pawn Код:
Change this:
format(string, sizeof(string), "ERROR: Password must be between %d and $d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
to this:
format(string, sizeof(string), "ERROR: Password must be between %d and %d characters long!", gSettings[PASS_MIN], gSettings[PASS_MAX]);
He has already answered,sorry ;p
Re: Weird Problem -
dice7 - 24.01.2010
pawn Код:
format(string, sizeof(string), "ERROR: Password must be between %d and $d characters long!",
to
pawn Код:
format(string, sizeof(string), "ERROR: Password must be between %d and %d characters long!",
Re: Weird Problem -
Torran - 24.01.2010
Ok now ingame its showing
Between 0 and $d characters
Re: Weird Problem -
MadeMan - 24.01.2010
Change $ to % .
Re: Weird Problem -
Torran - 24.01.2010
I have..
Ingame it says
Between 0 and $d Characters long
Re: Weird Problem -
MadeMan - 24.01.2010
Quote:
|
Originally Posted by Torran
I have..
|
Are you sure?
Re: Weird Problem -
Torran - 24.01.2010
Quote:
|
Originally Posted by MadeMan
Quote:
|
Originally Posted by Torran
I have..
|
Are you sure?
|
Yes
EDIT: Oh wait i just did it on password and not on register
EDIT: How do i change the Max characters,
Because ingame it just says Between 0 and 0
Re: Weird Problem -
MadeMan - 24.01.2010
Find the place where you have
Re: Weird Problem -
Torran - 24.01.2010
Quote:
|
Originally Posted by MadeMan
Find the place where you have
|
pawn Код:
new gSettings[SETTINGS_MAIN];
pawn Код:
gSettings[PASS_MIN] = dini_Int(SettingFile, "PassMin");
gSettings[PASS_MAX] = dini_Int(SettingFile, "PassMax");
pawn Код:
else if(strlen(params) < gSettings[PASS_MIN] || strlen(params) > gSettings[PASS_MAX])
pawn Код:
else if(strlen(tmp2) < gSettings[PASS_MIN] || strlen(tmp2) > gSettings[PASS_MAX])
All gSettings i can find related to that