SA-MP Forums Archive
[Ajuda] Tirar iscas. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Tirar iscas. (/showthread.php?tid=400837)



Tirar iscas. - Duduloch - 20.12.2012

Como fazer com que ao player digite um cmd, tire 1 isca dele? Cmd:

pawn Код:
if(9999 > Player[playerid][Isca] < 1) return SendClientMessage(playerid, -1, "Vocк nгo tem iscas para pescar! Compre na lojinha!");
{
SetTimerEx("Pescando", (tempo = TRandom(random(2),random(15)), tempo > 120000 ? 120000 : tempo) , false, "i", playerid);
SendClientMessage(playerid, -1, "Vocк estб pescando agora.");
}
New ke eu uso: Player[playerid][Isca];

att.

@edit to usando dof2..


Re: Tirar iscas. - @FatalFormat - 20.12.2012

Player[playerid][Isca] -= 1;

ou

Player[playerid][Isca]--;


Re: Tirar iscas. - Duduloch - 20.12.2012

Quote:
Originally Posted by @FatalFormat
Посмотреть сообщение
Player[playerid][Isca] -= 1;

ou

Player[playerid][Isca]--;
testando.. funfar edito e dou rep+

@Edit funcional rep+