[Ajuda] /Gang Criar Nome ( sscanf )
#1

Ola, alguem poderia me dizer como faz esse comando no sscanf, sem usar stork ?
Reply
#2

Qual a finalidade desse comando? Criar GZ?
Reply
#3

....
Quote:

CMD:gangcriar
new nome[128];
if(sscanf(params, "s[128]", nome; return SendClientMessage (playerid, 0xFFFFFF, "Use: /gangcriar [NOME]");
if(strlen(nome) < 5; return SendClientMessage(playerid, 0xFFFFFF, "Deve conter no minimo 5 caracteres");

Reply
#4

Quote:
Originally Posted by Malandrin
Посмотреть сообщение
Qual a finalidade desse comando? Criar GZ?
Criar gang uк

k2bi, quero o espaзo entre o gangcriar
Reply
#5

PHP код:
CMD:gang(playerid, params[])
{
    if(
strcmp(params, "criar", true, 5) == 0)
    {
        new 
NomeGZ[20];
        if(
sscanf(params, "s[20]", NomeGZ))
            return 
SendClientMessage(playerid, -1, "| ERRO | Use: /Gang Criar [Nome]");
        
format(STRX, sizeof(STRX), "| INFO | Vocк criou a Gang %s", NomeGZ);
        
SendClientMessage(playerid, -1, STRX);
    }
    return 
1;
} 
Nгo sei se vai da certo pq nem testei й sу uma base.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)