[Pedido] Tutorial sscanf e zcmd - 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: [Pedido] Tutorial sscanf e zcmd (
/showthread.php?tid=434100)
Tutorial sscanf e zcmd -
WotusPower - 01.05.2013
Vi 2 tutoriais jб, do bruno e do linow, porйm eu gostaria que alguйm me explicasse mesmo,
oque й essas letras, f, d, a, essas letras...
PHP код:
if(sscanf(params, "f", vida)) return SendClientMessage(playerid, -1, "Use /setarvida [1-100].");
Re: Tutorial sscanf e zcmd -
Sky™ - 01.05.2013
pawn Код:
//Letra //Significado //Exemplo
i, d Integer 1, 42, -10
c Character a, o, *
l Logical true, false
b Binary 01001, 0b1100
h, x Hex 1A, 0x23
o Octal 045 12
n Number 42, 0b010, 0xAC, 045
f Float 0.7, -99.5
g IEEE Float 0.7, -99.5, INFINITY, -INFINITY, NAN, NAN_E
u User name/id (bots and players) ******, 0
q Bot name/id ShopBot, 27
r Player name/id ******, 42
//Original Postado Por ******
Re: Tutorial sscanf e zcmd -
StringBR - 01.05.2013
i - Numeros inteiros
u - ID
f - float
...
E oque eu sei
Re: Tutorial sscanf e zcmd -
WotusPower - 01.05.2013
vlw +rep *-*
Re: Tutorial sscanf e zcmd -
zSuYaNw - 01.05.2013
Veja o tutorial do nosso amigo BlueX para entender melhor.
https://sampforum.blast.hk/showthread.php?tid=277842
Re: Tutorial sscanf e zcmd -
MarcosRodrigo - 01.05.2013
VLW ae sky.