dini help
#1

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

Just read it seperate and stick them with format
Reply
#3

i tried like
Код:
format(message, sizeof(message),"[%s]\n",message,  dini_Int(iFile,"buddy1"));
Just showing " [] "
Reply
#4

You can't use string as an integer, change dini_Int to dini_Str
Reply
#5

error 017: undefined symbol "dini_Str"
You srsly ? i cant find nothing about dini_Str
Reply
#6

Aynone else can help us here?
Reply
#7

For strings use dini_Get ->

format(message, sizeof(message),"[%s]\n",message, dini_Get(iFile,"buddy1"));
Reply
#8

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

The point of ini files is that you have a separate key for each value. (Also stop using dini, please!)
Reply
#10

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)