[AJUDA] Texto
#6

nгo, nгo й isso que eu to dizendo.
eu digo tipo um sistema de PM exemplo meu comando que eu fiz й assim.
pawn Код:
if(strcmp(cmd, "/mp", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
            return 1;
        }
        new ID;
        ID = strval(tmp);
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
            return 1;
        }
        new Texto;
        new Nome[MAX_PLAYER_NAME];
        new String[128];
        GetPlayerName(playerid, Nome, sizeof(Nome));
        format(String, sizeof(String), "PM De %s: %s",Nome, Texto);
        SendClientMessage(ID,0xFFFF00AA,String);
        return 1;
    }
ele manda a mensagem com o nome mas o que ele digitou depois de ID oui seja o Texto, o texto nгo aparece fica em branco, poristo queria saber como faz para getar o texto, seu eu digitar um numero e colocar %d no lugar de %s aparece o numero mas texto nгo eu queria fazer aparecer texto
obrigado
Reply


Messages In This Thread
[AJUDA] Texto - by TiagoPS - 30.10.2010, 20:06
Re: [AJUDA] Texto - by zSuYaNw - 30.10.2010, 20:44
Respuesta: [AJUDA] Texto - by BiieL - 30.10.2010, 21:20
Re: [AJUDA] Texto - by zSuYaNw - 30.10.2010, 21:36
Respuesta: [AJUDA] Texto - by BiieL - 30.10.2010, 22:18
Re: [AJUDA] Texto - by TiagoPS - 30.10.2010, 22:37
Re: [AJUDA] Texto - by Gustavob - 31.10.2010, 23:51
Re: [AJUDA] Texto - by TiagoPS - 01.11.2010, 13:34
Re: [AJUDA] Texto - by Gustavob - 01.11.2010, 17:03
Re: [AJUDA] Texto - by smd_murilo - 01.11.2010, 17:55

Forum Jump:


Users browsing this thread: 1 Guest(s)