Sccanf parameters... ssiifffs...
#3

the db looks like this:

name-string
pass-string
pmoney int
pskin int
px-float
py-float
pz-float
lastconnection-string

and my enums are like this now

enum pEnumInfo
{
pMoney,
pSkin,
FloatX,
FloatY,
FloatZ,
}
Код:
sscanf(savingstring,"p<|>e<-s[24]-s[24]iifff-s[100]>", PlayerInfo[playerid]);
i put dashes cause i wanted to skip reading the strings and heard i can use "-". I still cant read the pmoney and pskin tho D:
Reply


Messages In This Thread
Sccanf parameters... ssiifffs... - by Limbo - 23.03.2013, 21:05
Re: Sccanf parameters... ssiifffs... - by Scenario - 23.03.2013, 22:03
Re: Sccanf parameters... ssiifffs... - by Limbo - 23.03.2013, 22:58
Re: Sccanf parameters... ssiifffs... - by Vince - 23.03.2013, 23:18

Forum Jump:


Users browsing this thread: 1 Guest(s)