Get String from dini file - 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: Get String from dini file (
/showthread.php?tid=556296)
Get String from dini file -
paulbobin - 10.01.2015
A File From Scriptfile/rracesystem/
Код:
BestRacer_0=pAuLBoBiN
BestRacerTime_1=0
BestRacer_1=noone
BestRacerTime_2=0
BestRacer_2=noone
BestRacerTime_3=0
BestRacer_3=noone
BestRacerTime_4=0
BestRacer_4=noone
How to take it to a Textdraw String
i want Racer and Racer time
HOW>>>?? ? ?
Please Help Me
Re: Get String from dini file -
Gammix - 10.01.2015
for dini use:
dini_Get(filename[], key[]);, this will return the key value if its a string.
Just like for example, this:
pawn Код:
TextDrawSetString(textdraw, dini_Get("filename", "BestRacer_0"));//here "textdraw" is the textdraw id were you want to store racer name string
TextDrawSetString(textdraw1, dini_Get("filename", "BestRacerTime_1"));//here "textdraw1" is the textdraw id where you want to store the time!
Re: Get String from dini file -
paulbobin - 10.01.2015
Quote:
Originally Posted by ginger
for dini use: dini_Get(filename[], key[]);, this will return the key value if its a string.
Just like for example, this:
pawn Код:
TextDrawSetString(textdraw, dini_Get("filename", "BestRacer_0"));//here "textdraw" is the textdraw id were you want to store racer name string
TextDrawSetString(textdraw1, dini_Get("filename", "BestRacerTime_1"));//here "textdraw1" is the textdraw id where you want to store the time!
|
Wait I will Test
Re: Get String from dini file -
paulbobin - 11.01.2015
PAWN Waring:warning 202: number of arguments does not match definition
Re: Get String from dini file -
paulbobin - 11.01.2015
ginger! Thanks you MAn!!
Works REP+++