[AJUDA]Comando usando sscanf e strtock ! ! ! - 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]Comando usando sscanf e strtock ! ! ! (
/showthread.php?tid=300988)
[AJUDA]Comando usando sscanf e strtock ! ! ! -
lucas_mdr1235 - 02.12.2011
o problema e o seguinte fazer com q o unformat reconhecer quando sera preciso digitar os meses ou nao tipo se eu colocar no stat 0 nao precisar colocar os meses
PHP код:
new para1;
new stat;
new meses;
if(unformat(cmdtext, "s[30]uii",Comando,para1,stat,meses))
{
SendClientMessage(playerid, COLOR_GRAD2, "Minha mensagem");
return 1;
}
if(stat < 0 || stat > 2) { SendClientMessage(playerid, COLOR_WARNING, "** Nao pode ser maior que 2 ou menor que 0."); return 1; }
if(meses < 1 && stat != 0) { SendClientMessage(playerid, COLOR_WARNING, "** Nao pode ser menor que 1."); return 1; }
Desde ja agradeзo a ajuda S2 ! ! !
Re: [AJUDA]Comando usando sscanf e strtock ! ! ! -
GabrielDias_Invision - 02.12.2011
cara eu num entendi nem oq esse comando faz pra tentar te ajduar.
Re: [AJUDA]Comando usando sscanf e strtock ! ! ! -
lucas_mdr1235 - 02.12.2011
o comando da vip por meses pagos
Re: [AJUDA]Comando usando sscanf e strtock ! ! ! -
GabrielDias_Invision - 02.12.2011
num й melhor por em dias?
Re: [AJUDA]Comando usando sscanf e strtock ! ! ! -
lucas_mdr1235 - 02.12.2011
Lol mano num tem diferenca isso preciso dessa ajuda se puder me ajudar
@EDIT
a duvida e se eu colocar vip zero nao pedir os meses