[Tutorial] zcmd + sscanf (Criando Comando + Video Aula)
#9

Quote:
Originally Posted by Douglas_FusioN
Посмотреть сообщение
acho que faltou uma explicaзгo sobre os parametros, para que serve o i, o u, o us.
Quote:
Originally Posted by IgorMendes
Посмотреть сообщение
Ganhou REP, vai me ajudar bastante, mas como o Douglas Disse, explica as funзхes dos parametros ae cara.
Quote:
Originally Posted by histire
Посмотреть сообщение
explicaзao meio simples, mais para os mais "novatos" que tem preguiзa de le vai ser uma boa a/
Quote:
Originally Posted by ******
Посмотреть сообщение
  • Basic specifiers
Код:
Specifier(s)			Name				Example values
	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
Quote:
Originally Posted by ******
Посмотреть сообщение
  • All specifiers
For quick reference, here is a list of ALL the specifiers and their use:

Код:
Format					Use
L(true/false)				Optional logical truthity
l					Logical truthity
K<callback>(true/false)			Optional custom operator
k<callback>				Custom operator
B(binary)				Optional binary number
b					Binary number
N(any format number)			Optional number
n					Number
C(character)				Optional character
c					Character
I(integer)				Optional integer
i					Integer
D(integer)				Optional integer
d					Integer
H(hex value)				Optional hex number
h					Hex number
O(octal value)				Optional octal value
o					Octal value
F(float)				Optional floating point number
f					Floating point number
G(float/INFINITY/-INFINITY/NAN/NAN_E)	Optional float with IEEE definitions
g					Float with IEEE definitions
{					Open quiet section
}					Close quiet section
P<delimiter>				Invalid delimiter change
p<delimiter>				Delimiter change
Z(string)[length]			Invalid optional string
z(string)[length]			Deprecated optional string
S(string)[length]			Optional string
s[length]				String
U(name/id)				Optional user (bot/player)
u					User (bot/player)
Q(name/id)				Optional bot (bot)
q					Bot (bot)
R(name/id)				Optional player (player)
r					Player (player)
A<type>(default)[length]		Optional array of given type
a<type>[length]				Array of given type
E<specification>(default)		Optional enumeration of given layout
e<specification>			Enumeration of given layout
'string'				Search string
%					Deprecated optional specifier prefix
Leiam o tуpico oficial do sscanf e aprendam mais do que assistir um simples vнdeo.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)