[CODE] Name restrictions - help please
#6

Quote:
Originally Posted by junkbuster
Посмотреть сообщение
Do you have idea of identifying if the name has numbers?
Код:
new NumericArray[10] = {0, 1, 2, 3, 4, 5, 6, 7, 8, 9}; // I think this is the away you initialize an array with values in pawno
new name[24];
GetPlayerName(playerid, name, sizeof(name));
for(new i = 0; i <= strlen(name); ++i)
    for(new j = 0; j < 10; ++j)
        if(name[i] == NumericArray[j])
        {
              SendClientMessage(playerid, -1, "Invalid Name");
              Kick(playerid);
         }
Didn't test it.. but try it
Reply


Messages In This Thread
[CODE] Name restrictions - help please - by squomp - 06.04.2012, 02:03
Re: [CODE] Name restrictions - help please - by DR3AD - 06.04.2012, 02:15
Re: [CODE] Name restrictions - help please - by squomp - 06.04.2012, 02:25
Respuesta: Re: [CODE] Name restrictions - help please - by junkbuster - 06.04.2012, 02:33
Re: [CODE] Name restrictions - help please - by squomp - 06.04.2012, 02:40
Re: Respuesta: Re: [CODE] Name restrictions - help please - by DR3AD - 06.04.2012, 12:47

Forum Jump:


Users browsing this thread: 1 Guest(s)