Name_Surname - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Name_Surname (
/showthread.php?tid=187834)
Name_Surname -
marinov - 05.11.2010
how do I make it ask to have a name like Name_Surname to join the server ?
Re: Name_Surname -
joeri55 - 05.11.2010
http://forum.sa-mp.com/showthread.ph...tname_lastname
Re: Name_Surname -
marinov - 05.11.2010
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
Re: Name_Surname -
joeri55 - 05.11.2010
Код:
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;
}
Re: Name_Surname -
marinov - 05.11.2010
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.
Re: Name_Surname -
TPD - 05.11.2010
You need to add 'new name[MAX_PLAYER_NAME];' and correctly position your returns (thats the 'return 1;').
Re: Name_Surname -
marinov - 05.11.2010
already fixed, sorry for not letting you guys know lol
but thx anyways