dini 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: dini help (
/showthread.php?tid=446919)
dini help -
Camorra - 27.06.2013
hi,
is that possible to read numbers and letters from txt into one line ?
for explain i have "Buddy - Mario 897897" how can i read the "Mario 897897"
Thanks
Re: dini help -
feartonyb - 27.06.2013
Just read it seperate and stick them with format
Re: dini help -
Camorra - 27.06.2013
i tried like
Код:
format(message, sizeof(message),"[%s]\n",message, dini_Int(iFile,"buddy1"));
Just showing " [] "
Re: dini help -
feartonyb - 27.06.2013
You can't use string as an integer, change dini_Int to dini_Str
Re: dini help -
Camorra - 27.06.2013
error 017: undefined symbol "dini_Str"
You srsly ? i cant find nothing about dini_Str
Re: dini help -
AdamCooper - 28.06.2013
Aynone else can help us here?
Re: dini help -
feartonyb - 28.06.2013
For strings use dini_Get ->
format(message, sizeof(message),"[%s]\n",message, dini_Get(iFile,"buddy1"));
Re: dini help -
AdamCooper - 28.06.2013
When I use dini_Get this dialog wont even appear to the player.
its not only string its a name and a number example : Jason 112233
Re: dini help -
Vince - 28.06.2013
The point of ini files is that you have a separate key for each value. (Also stop using dini, please!)
Re: dini help -
Don_Cage - 28.06.2013
Quote:
Originally Posted by Vince
The point of ini files is that you have a separate key for each value. (Also stop using dini, please!)
|
He can use what ever he want to use.