SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 02/03/2013, 12:09 PM   #1
horsemeat
Huge Clucker
 
Join Date: Mar 2013
Location: London, Ontario, Canada
Posts: 233
Reputation: 7
Post Question about saveing strings with dini

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

Code:
dini_IntSet(file,savestring,(string));
It Gives me an Error

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

Last edited by horsemeat; 02/03/2013 at 03:07 PM.
horsemeat is offline   Reply With Quote
Old 02/03/2013, 12:25 PM   #2
Sinner
Gangsta
 
Sinner's Avatar
 
Join Date: Aug 2010
Location: On This Mortal Coil
Posts: 770
Reputation: 292
Default Re: Question about saveing strings with dini

The syntax is:
pawn Code:
dini_IntSet(filename[],key[],value);

(String) is not a numeric value.
__________________
Please use the search feature before asking a question.
Sinner is offline   Reply With Quote
Old 02/03/2013, 12:28 PM   #3
1dllb
Little Clucker
 
1dllb's Avatar
 
Join Date: Feb 2013
Posts: 7
Reputation: 0
Default Re: Question about saveing strings with dini

dini_IntSet is for integers you should use.
pawn Code:
dini_Set(file, "Line in ini file", "string you want to save");
1dllb is offline   Reply With Quote
Old 02/03/2013, 02:07 PM   #4
horsemeat
Huge Clucker
 
Join Date: Mar 2013
Location: London, Ontario, Canada
Posts: 233
Reputation: 7
Thumbs up Re: Question about saveing strings with dini

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

I never saved a string before with dini

Thanks
horsemeat is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
strings question fordawinzz Scripting Help 1 12/11/2012 07:00 PM
Saving strings via DINI. Blunt Scripting Help 1 24/07/2012 07:15 PM
DINI and STRINGS [JnA]DukeNukem Help Archive 4 04/08/2011 09:18 AM
Saving strings with Dini [RVRP]Tyler Help Archive 3 09/06/2011 07:50 AM
Dini saveing.. GaGlets(R) Help Archive 0 17/03/2010 08:23 PM


All times are GMT. The time now is 01:32 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.