[Ajuda] Por pra funcionar o motivo!!
#1

Alguem pode me ajudar porfavor, sou novato em pawno e estou com bastante dificuldades com isso, estou a horas tentando fazer isso kkkk, eu queria por o "motivo" para funcionar tipo /darprocurado 0 desacato pro player poder escrever o motivo sacou?

Код:
if(strcmp(cmd,"/darprocurado", true)==0)
{
    new aname[MAX_PLAYER_NAME];
    if(pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
    {
        new tmp[256], plid;
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp))
            return SendClientMessage(playerid, Vermelho, "Digite: /Darprocurado [id] [motivo]");

        plid = strval(tmp);
        new pname[MAX_PLAYER_NAME];
        GetPlayerName(plid, pname, MAX_PLAYER_NAME);
        if(IsPlayerConnected(plid))
        {
            dini_IntSet(file2, "procurado", 1);
            SetPlayerWantedLevel(playerid, 1);
            GetPlayerName(plid, pname, MAX_PLAYER_NAME);
            
            format(string, sizeof(string), "%s Deu 1 estrela de procurado para %s motivo: %s)", pname, aname);
            SendClientMessageToAll(LARANJA, string);
        }
        else
        {
            format(string, sizeof(string), "ID %d nгo й vбlido!", plid);
            SendClientMessage(playerid, Vermelho, string);
        }
    }
    return 1;
}
Quem poder ajudar eu agradeзo!
Reply


Messages In This Thread
Por pra funcionar o motivo!! - by RianRBS - 22.09.2017, 16:55
Re: Por pra funcionar o motivo!! - by C4rtm4n - 22.09.2017, 17:17
Re: Por pra funcionar o motivo!! - by fxckshzt - 22.09.2017, 18:13
Re: Por pra funcionar o motivo!! - by RianRBS - 22.09.2017, 18:26
Re: Por pra funcionar o motivo!! - by fxckshzt - 22.09.2017, 18:29
Re: Por pra funcionar o motivo!! - by Kamper - 22.09.2017, 18:31
Re: Por pra funcionar o motivo!! - by RianRBS - 22.09.2017, 19:04

Forum Jump:


Users browsing this thread: 1 Guest(s)