Need help with dini making file
#1

Ok, so i have this code OnplayerConnect so when the player connect it creates the files but for some reason it's not creating a file can someone help me out?

pawn Код:
new str[128];
format(str, sizeof(str), "Cars/CarKeys/%s.%s.cfg", str);
if(dini_Exists(str))
    {
      strmid(CarKeys[playerid][cCarkey], dini_Get(str, "Vehicle1"), 0, strlen(dini_Get(str, "Vehicle1")), 255);
      strmid(CarKeys[playerid][cCarkey2], dini_Get(str, "Vehicle2"), 0, strlen(dini_Get(str, "Vehicle2")), 255);
      strmid(CarKeys[playerid][cCarkey3], dini_Get(str, "Vehicle3"), 0, strlen(dini_Get(str, "Vehicle3")), 255);
   
    }
    else
    {
      dini_Create(str);
      strmid(CarKeys[playerid][cCarkey], "None", 0, strlen("None"), 255);
      strmid(CarKeys[playerid][cCarkey2], "None", 0, strlen("None"), 255);
      strmid(CarKeys[playerid][cCarkey3], "None", 0, strlen("None"), 255);
     
    }
    return 1;
}
Reply


Messages In This Thread
Need help with dini making file - by ihatetn931 - 09.03.2010, 23:49
Re: Need help with dini making file - by Backwardsman97 - 10.03.2010, 00:13
Re: Need help with dini making file - by ihatetn931 - 10.03.2010, 00:16
Re: Need help with dini making file - by Backwardsman97 - 10.03.2010, 03:52
Re: Need help with dini making file - by ihatetn931 - 10.03.2010, 04:02
Re: Need help with dini making file - by Niixie - 10.03.2010, 04:34
Re: Need help with dini making file - by ihatetn931 - 10.03.2010, 05:12
Re: Need help with dini making file - by Desert - 10.03.2010, 07:34
Re: Need help with dini making file - by Oxside - 10.03.2010, 08:04
Re: Need help with dini making file - by pen_theGun - 10.03.2010, 08:11

Forum Jump:


Users browsing this thread: 4 Guest(s)