Question about saveing strings with dini
#1

solved
Question About Saveing Strings With Dini


I want to make a script so I can be reminded what bugs to fix. I want to save string using dini here is the command I tried using but it gave me an Error

Код:
dini_IntSet(file,savestring,(string));
It Gives me an Error

Код:
C:\Users\joshua\Desktop\sampserver\pawno\notes.pwn(64) : error 035: argument type mismatch (argument 3)
The answer is
Код:
dini_Set(file,savestring,(string));
Reply
#2

The syntax is:
pawn Код:
dini_IntSet(filename[],key[],value);
(String) is not a numeric value.
Reply
#3

dini_IntSet is for integers you should use.
pawn Код:
dini_Set(file, "Line in ini file", "string you want to save");
Reply
#4

Aaa Int stands for integer Thanks for your help it's all good now

I never saved a string before with dini

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)