Bughy
28-06-2019, 09:43 AM
Hai salut fratilor, azi vreau sa va postez un mic tutorial pentru a adauga caractere speciale in numele "caracterelor" la crearea acestora.
Exemplu: !#Bughy#!
Deschidem sursa game - > input_auth.cpp
Cuta functia:
bool FN_IS_VALID_LOGIN_STRING (const char * str)
Schimba toata functia cu:
bool FN_IS_VALID_LOGIN_STRING (const char * str)
{
const char * tmp;
if (! str ||! * str)
return false;
if (strlen (str) & lt; 2)
return false;
for (tmp = str; * tmp; ++ tmp)
{
// ËÆÄÄÄ Ç Ç Ç Ç Ç Ç
if (isdigit (* tmp) || isalpha (* tmp))
continue;
// ij³ª'' ¸îîîÆÆÖÖ¹ÀÀÚ çãëë
switch (* tmp)
{
case '':
case '_':
case '-':
case '.':
case '!':
case '@':
case '#':
case '$':
case '%':
case '^':
case '&':
case '*':
case '(':
case ')':
continue;
}
return false;
}
return true;
}
Exemplu: !#Bughy#!
Deschidem sursa game - > input_auth.cpp
Cuta functia:
bool FN_IS_VALID_LOGIN_STRING (const char * str)
Schimba toata functia cu:
bool FN_IS_VALID_LOGIN_STRING (const char * str)
{
const char * tmp;
if (! str ||! * str)
return false;
if (strlen (str) & lt; 2)
return false;
for (tmp = str; * tmp; ++ tmp)
{
// ËÆÄÄÄ Ç Ç Ç Ç Ç Ç
if (isdigit (* tmp) || isalpha (* tmp))
continue;
// ij³ª'' ¸îîîÆÆÖÖ¹ÀÀÚ çãëë
switch (* tmp)
{
case '':
case '_':
case '-':
case '.':
case '!':
case '@':
case '#':
case '$':
case '%':
case '^':
case '&':
case '*':
case '(':
case ')':
continue;
}
return false;
}
return true;
}