Stack when dini_get or dini_int - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Stack when dini_get or dini_int (
/showthread.php?tid=197619)
Stack when dini_get or dini_int -
sTreTcheD - 09.12.2010
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).
Re: Stack when dini_get or dini_int -
CyNiC - 09.12.2010
Use dini_IntSet to write the color and dini_Int to read.