07.12.2013, 00:53
I dont want anyone to be able to log in if they don't have "_" in their name, so I tried to copy strreplace stock, though it always returns true.
pawn Код:
stock IllegalName(playerid)
{
new name[24];
GetPlayerName(playerid, name, sizeof(name));
for(new i=0; name[i]; i++)
{
if(name[i] != '_')
{
return true;
}
}
return 1;
}