28.02.2013, 19:44
(
Last edited by Y_Less; 01/03/2013 at 09:58 AM.
)
So, I have an "/OOC" chat, and I a "settings.ini" file in my scriptfiles. I have a line in the "settings.ini" that says "ooc = 0" stating that OOC is disabled. (I am using Y_INI). How can I set the value of "ooc" to a string in SA:MP so I can do the following?
bumpppp, anyone know how to load info from INI and use it as a string? Like for example, could someone write a small script checks what "money" is equal to in a file "scriptfiles/users/user.ini", and update their amount of money? Then, I can just refrence that every time I need to get something from an ini file
I find it hard to believe that no one knows how to retrive values from INI files, when almost all the gamemodes and filterscripts out there do it.
pawn Code:
new ooc[2];
ooc = ?????; // <----- The value of "ooc" in "scriptfiles/settings.ini"
if(ooc == 1){
//continue with sending message
} else {
SendClientMessage(playerid, COLOR_LIGHTBLUE, "/OOC chat has been disabled by admins.");
}
I find it hard to believe that no one knows how to retrive values from INI files, when almost all the gamemodes and filterscripts out there do it.