Name_Surname
#1

how do I make it ask to have a name like Name_Surname to join the server ?
Reply
#2

http://forum.sa-mp.com/showthread.ph...tname_lastname
Reply
#3

that's not what I want, I don't want to "NOT" allow those name, I want it to request a name like Name_Surname, I don't care if it is a actor or someone's else name
Reply
#4

Код:
    new namestring = strfind(plname, "_", true);
     if(namestring == -1)
    {
        SendClientMessage(playerid, COLOR_YELLOW2, "Your name is not acceptable.");
        SendClientMessage(playerid, COLOR_YELLOW2, "Hint: Your name must be in the format Firstname_Lastname.");
        Kick(playerid);
        return 1;
    }
Reply
#5

C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(686) : error 017: undefined symbol "name"
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(687) : warning 217: loose indentation
C:\Users\Marino Varesio\Desktop\zombie outbreak\gamemodes\zombieoutbreak.pwn(694) : warning 217: loose indentation
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


1 Error.
Reply
#6

You need to add 'new name[MAX_PLAYER_NAME];' and correctly position your returns (thats the 'return 1;').
Reply
#7

already fixed, sorry for not letting you guys know lol
but thx anyways
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)