[Pedido] Nick RPG
#6

Quote:
Originally Posted by Gustavo_Araujo
View Post
pawn Code:
//OnPlayerConnect


new Name[24];
GetPlayerName(playerid,Name,24);
if(strfind(name,"_",false)) return SendClientMessage(playerid,-1,"USE RP NAME: Nome_Sobrenome"),Kick(playerid);
Teste.
Seu cуdigo deu certo aqui, mбs mesmo eu entrando com Nome_Sobrenome, eu continuo a tomar kick.

Quote:
Originally Posted by Douglas_prt
View Post
pawn Code:
new pName[MAX_PLAYER_NAME], sstring[256];
    GetPlayerName(playerid, pName, MAX_PLAYER_NAME);        
    if(strfind(pName, "_", true) == -1)
    {
        format(sstring, 256, "%s foi kickado pelo servidor. | Motivo: Nome RPG Invбlido (Ex. Nome_Sobrenome).", pName);
        SendClientMessageToAll(-1, sstring);       
        Kick(playerid);
        return 1;
    }
O seu estб a dar o seguinte error: error 021: symbol already defined: "sstring"
Reply


Messages In This Thread
Nick RPG - by Rijin - 27.08.2012, 14:54
Re: Nick RPG - by Douglas_prt - 27.08.2012, 14:59
Re: Nick RPG - by Rijin - 27.08.2012, 15:01
Re: Nick RPG - by Dolby - 27.08.2012, 15:01
Re: Nick RPG - by Douglas_prt - 27.08.2012, 15:02
Re: Nick RPG - by Rijin - 27.08.2012, 15:07
Re: Nick RPG - by Rijin - 27.08.2012, 15:27
Re: Nick RPG - by Ley - 27.08.2012, 15:30
Re: Nick RPG - by Rijin - 27.08.2012, 15:48
Re: Nick RPG - by Ley - 27.08.2012, 15:49

Forum Jump:


Users browsing this thread: 3 Guest(s)