Raised This Month: $51 Target: $400
 12% 

How to make a ini file?


Post New Thread Reply   
 
Thread Tools Display Modes
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-22-2008 , 14:53   Re: How to make a ini file?
Reply With Quote #11

So what does "x" do? Is that even a flag in pawn? I know it's a flag for PHP but...
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Lee
AlliedModders Donor
Join Date: Feb 2006
Old 12-22-2008 , 18:19   Re: How to make a ini file?
Reply With Quote #12

Quote:
Originally Posted by Dores View Post
I've never heard of .coord extension.
How do you except to make a .ini file when you've given your file a .coord extension(which I don't think even exists)?
A file extension is nothing but a piece of metadata that tells the operating system which program should be used to read a file that uses a particular encoding technique. It has no bearing on how the file is created in this context. The .ini file format is not well defined, either by an authoritative body or by de facto standard. As such, it can be considered as nothing more than a standard text file containing settings. Therefore, it really doesn't matter whether his file has an extension of .ini, .cuttlefish (if the file system in use permits an extension of that length of course), or since he probably won't be using a desktop computer to open it, whether it has one at all.

The documentation of C's fopen() makes no mention of an x flag (AMX Mod X's fopen() is just a wrapper).
__________________
No support via PM.

Last edited by Lee; 12-22-2008 at 18:37.
Lee is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 12-23-2008 , 03:50   Re: How to make a ini file?
Reply With Quote #13

My and Dolores plugin don't work on my Windows XP, where I'm testing plugins. Can be something with "chmod" if this exist on Windows?
__________________
Aaaaaa!
GoGoGo is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-23-2008 , 07:46   Re: How to make a ini file?
Reply With Quote #14

Quote:
Originally Posted by Lee View Post
A file extension is nothing but a piece of metadata that tells the operating system which program should be used to read a file that uses a particular encoding technique. It has no bearing on how the file is created in this context. The .ini file format is not well defined, either by an authoritative body or by de facto standard. As such, it can be considered as nothing more than a standard text file containing settings. Therefore, it really doesn't matter whether his file has an extension of .ini, .cuttlefish (if the file system in use permits an extension of that length of course), or since he probably won't be using a desktop computer to open it, whether it has one at all.
I know, but if you look at the topic he specifically asked for a .ini file, so I thought maybe it does matter for him. I guess I was wrong.

Quote:
Originally Posted by Lee
The documentation of C's fopen() makes no mention of an x flag (AMX Mod X's fopen() is just a wrapper).
AMX Mod X is also very similar to PHP, so I thought that the PHP flag "x" might exist here too. Thanks for the information.

@GoGoGo
Search in the code I gave you the "x" flag and change it to "wt" then test.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 12-23-2008 , 09:50   Re: How to make a ini file?
Reply With Quote #15

In my Windows it doesn't make file. It doesn't matter with "x" or "wt". Maybe something in my Windows block it?
__________________
Aaaaaa!
GoGoGo is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-23-2008 , 09:54   Re: How to make a ini file?
Reply With Quote #16

Unreasonable, but maybe your windows blocks 3rd-party programs from creating files/text files.
Just create the file manually.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
GoGoGo
Senior Member
Join Date: Apr 2008
Old 12-23-2008 , 10:03   Re: How to make a ini file?
Reply With Quote #17

@Edit: Manually works, on linux will be a problem with it?
__________________
Aaaaaa!
GoGoGo is offline
Dores
Veteran Member
Join Date: Jun 2008
Location: You really don't wanna k
Old 12-23-2008 , 10:06   Re: How to make a ini file?
Reply With Quote #18

Don't ask me, I know nothing about Linux.
__________________
O o
/Ż________________________
| IMMA FIRIN' MAH LAZOR!!!
\_ŻŻŻ
Dores is offline
Reply



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

Forum Jump


All times are GMT -4. The time now is 19:52.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode