[AJUDA] Texto
#7

pawn Код:
if(strcmp(cmd, "/mp", true) == 0)
    {
        tmp = strtok(cmdtext, idx);
        new tmp2[256] = strtok(cmd, idx); // se der erro aqui coloca new cmd[256]; antes dessa linha, por algum motivo os tmp q usam strtok tem q ser [256]
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
            return 1;
        }
        new ID;
        ID = strval(tmp);
        new texto = strval(tmp2);
        if(!strlen(tmp))
        {
            SendClientMessage(playerid, 0xFF0000AA, "USO: /mp [ID] [Texto]");
            return 1;
        }
        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;
    }
tenta isso nao sei se vai dar certo :S
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)