22.09.2017, 16:55
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?
Quem poder ajudar eu agradeзo!
Код:
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; }