Get String from dini file
#1

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
Reply
#2

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!
Reply
#3

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
Reply
#4

PAWN Waring:warning 202: number of arguments does not match definition
Reply
#5

ginger! Thanks you MAn!!
Works REP+++
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)