Why this doesent save?
#5

pawn Код:
#define CARFILE OwnedCars

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
    if(pVeh[playerid] != -1 && pVeh[playerid] == vehicleid)
    {
        GetPlayerName(playerid, pname, sizeof(pname));
        format(file, sizeof file,"%s/%s.ini", CARFILE, pname);
        if(dini_Exists(file))
        {
            dini_IntSet(file,"Color1",color1);
            dini_IntSet(file,"Color2",color2);
        }
        else
        {
            dini_Create(file);
            dini_IntSet(file,"Color1",color1);
            dini_IntSet(file,"Color2",color2);
        }
    }
    return 1;
}
Try now.
Reply


Messages In This Thread
Why this doesent save? - by Danny - 15.11.2010, 11:19
Re: Why this doesent save? - by The_Moddler - 15.11.2010, 11:32
Re: Why this doesent save? - by Danny - 15.11.2010, 11:43
Re: Why this doesent save? - by iggy1 - 15.11.2010, 11:56
Re: Why this doesent save? - by The_Moddler - 15.11.2010, 12:03
Re: Why this doesent save? - by Danny - 15.11.2010, 14:07

Forum Jump:


Users browsing this thread: 1 Guest(s)