Stack when dini_get or dini_int
#1

Look, in my code:
Код:
format(file,sizeof(file),"/CarSys/car%d.txt",car);
  printf("This is the file: %s",file);
	if (fexist(file))
		{
		printf("ITs exists...");
		printf("and the color is: %s",dini_Get(file,"Colour1"));
........................
The problem: the line "and the color is: %s" dont shown, and the file (car1.txt) is:
Код:
CarID=1
CarName=Banshee
CarModel=429
CarOwned=0
CarOwner=none
CarLocked=0
Buyable=1
Price=50000
Parkedx=0
Parkedy=0
Parkedz=0
Parkedangle=0
CarMod1=0
Nitros=0
PaintJob=-1
Colour1=-1
Colour2=-1
All the code: http://pastebin.com/8zugnjGK

Thanks.

BTW: Its filterscript, I didnt get any error and after this (that the line isnt apprear) the filterscript unloaded (because of invisible error).
Reply
#2

Use dini_IntSet to write the color and dini_Int to read.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)