RP Names
#1

Hey, I want to ask how can I make length of player name? First name should be 3-7 same goes for the Last name 3-7? I'm trying to make those RP name Like_This
Reply
#2

So how can I make name length limit ? I still didn't figured out :/ for example name can be only from 3-15 characters or smth like that
Reply
#3

use this for declaration-
Код:
new firstname[15],lastname[15];
and condition this--
Код:
if(strlen(firstname)>15)
{
//wahtever u want to do
}
if(strlen(lastname)>15)
{
//wahtever u want to do
}
Reply
#4

Quote:
Originally Posted by BroZeus
Посмотреть сообщение
use this for declaration-
Код:
new firstname[15],lastname[15];
and condition this--
Код:
if(strlen(firstname)>15)
{
//wahtever u want to do
}
if(strlen(lastname)>15)
{
//wahtever u want to do
}
How exactly I should use that? And how script knows what is firstname and what is lastname?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)