saving to a file with Dini? how? doesnt works... REP+
#1

hey guys,

i am trying to make it that this thingy gets saved to the file when i do the cmd and i choose the thingy but the problem is IT DOESNT SAVES IT... i tried alot of things but it just dont works..
this is my code:
pawn Код:
switch(dialogid)
    {
        case 599:
        {
            if(!response) return BuildRace = 0;
            switch(listitem)
            {
                case 0:
                {
                    new rFile[256];
                    format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", RaceName);
                    RaceMode = 0;
                    dini_IntSet(rFile,"RaceMode", 0);
                }
                case 1:
                {
                    new rFile[256];
                    format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", RaceName);
                    RaceMode = 1;
                    dini_IntSet(rFile, "RaceMode", string);
                }
                case 2:
                {
                    new rFile[256];
                    format(rFile, sizeof(rFile), "/rRaceSystem/%s.RRACE", RaceName);
                    RaceMode = 2;
                    dini_IntSet(rFile,"RaceMode", 2);
                }
            }
            ShowDialog(playerid, 600);
        }
if ANYONE can help me i would really appreciate that and you get rep+ i really need help cuz this is my first time i work with saving systems and i am not so good with it yet and i dont understand why it doesnt works... and the reason why i use dini is cuz the script uses it everywhere so i wont change the dini to y ini or something i just want that the RaceMode gets saved

it has to do that at the first 1 at case 0: it has to save that RaceMode is 0 so something like this has to get in the file: RaceMode=0

at case 1 it has to save RaceMode=1 and at case 2 it has to save RaceMode=2

anyone knows why this isnt working? pls help

greets niels
Reply


Messages In This Thread
saving to a file with Dini? how? doesnt works... REP+ - by niels44 - 19.04.2012, 18:27
Re: saving to a file with Dini? how? doesnt works... REP+ - by Xaviour212 - 20.04.2012, 06:24
Re: saving to a file with Dini? how? doesnt works... REP+ - by niels44 - 20.04.2012, 14:01
Re: saving to a file with Dini? how? doesnt works... REP+ - by niels44 - 21.04.2012, 08:39

Forum Jump:


Users browsing this thread: 3 Guest(s)