Dini problem - 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)
+--- Thread: Dini problem (
/showthread.php?tid=359093)
Dini problem -
dannyk0ed - 12.07.2012
When i compile my script with Dini i get these errors
pawn Код:
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : error 017: undefined symbol "fexist"
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : warning 215: expression has no effect
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : error 001: expected token: ";", but found ")"
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : error 029: invalid expression, assumed zero
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : fatal error 107: too many error messages on one line
The errors are in the Dini file.
pawn Код:
stock dini_Exists(filename[]) {
return fexist(filename);
}
Re: Dini problem -
.FuneraL. - 12.07.2012
pawn Код:
stock dini_Exists(filename[]) {
return fexist(filename[]);
}
Try this.
Re: Dini problem -
dannyk0ed - 12.07.2012
Thanks.
Re: Dini problem -
dannyk0ed - 12.07.2012
pawn Код:
C:\Users\Danny\Desktop\Server\pawno\include\Dini.inc(32) : error 029: invalid expression, assumed zero
pawn Код:
stock dini_Exists(filename[]) {
return fexist(filename[]);
}
Re: Dini problem -
[MM]RoXoR[FS] - 13.07.2012
Change
pawn Код:
stock dini_Exists(filename[]) {
return fexist(filename[]);
}
to
pawn Код:
if (dini_Exists(filename[])) {
//Your code;
}