SA-MP Forums Archive
Valid characters - 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)
+--- Thread: Valid characters (/showthread.php?tid=621711)



Valid characters - MerryDeer - 13.11.2016

Hi,

I found somewhere made that function:

Код:
stock IsValidPassword(pass[])
{
  for(new i; i<strlen(pass); i++)
  {
    if((pass[i] < 48) || (pass[i] > 57 && pass[i] < 67) || (pass[i] > 90 && pass[i]< 97) || (pass[i] > 122)) return 0;
  }
  return 1;
}
This that special characters can crash server, so everywhere player can input, or write i have to check? where i have to use that above?


Re: Valid characters - Vince - 14.11.2016

This is some bullshit. Anything under 32 are control characters so in normal circumstances these aren't used (can't even type with the keyboard) and the rest are normal characters.