SQL HELP - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: SQL HELP (
/showthread.php?tid=617057)
SQL HELP -
Pearson - 15.09.2016
Can someone tell me what this code mean? Its SQL R5 Code.
PHP код:
sscanf(result, "p<|>dds[32]s[32]ffffffddddddddfffddddds[32]dddd",
BizzInfo[i][bID],
BizzInfo[i][bOwned],
BizzInfo[i][bOwner],
BizzInfo[i][bMessage],
BizzInfo[i][bEntranceX],
BizzInfo[i][bEntranceY],
BizzInfo[i][bEntranceZ],
BizzInfo[i][bExitX],
BizzInfo[i][bExitY],
BizzInfo[i][bExitZ],
BizzInfo[i][bBuyPrice],
BizzInfo[i][bEntranceCost],
BizzInfo[i][bTill],
BizzInfo[i][bLocked],
BizzInfo[i][bInterior],
BizzInfo[i][bProducts],
BizzInfo[i][b2Till],
BizzInfo[i][bPrice],
BizzInfo[i][bBarX],
BizzInfo[i][bBarY],
BizzInfo[i][bBarZ],
BizzInfo[i][bMafia],
BizzInfo[i][bType],
BizzInfo[i][bLockTime],
BizzInfo[i][bLicense],
BizzInfo[i][bStavka],
BizzInfo[i][bNameStavka],
BizzInfo[i][bLastStavka],
BizzInfo[i][bTimeStavka],
BizzInfo[i][bMinStavka],
BizzInfo[i][bVirtualWorld]);
PHP код:
sscanf(result, "p<|>dds[32]s[32]ffffffddddddddfffddddds[32]dddd",
Re: SQL HELP -
JordanZaundd - 15.09.2016
Each letter are specifiers for defining the variable type, like %d and %s in format().
From the sscanf thread:
Код:
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
Please read up on:
https://sampforum.blast.hk/showthread.php?tid=602923