error undefined symble unformat need help. - 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: error undefined symble unformat need help. (
/showthread.php?tid=397100)
error undefined symble unformat need help. -
jueix - 03.12.2012
Ok at first It worked fine but then when I made a slit update to my script it wen't to an error here is the code.
pawn Код:
stock AddObjectFromFile(DFileName[])
{
if(!fexist(DFileName)) return 0;
new File:ObjectFile, Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ, OVW, OINT, oTotal, Line[128];
ObjectFile = fopen(DFileName, io_read);
while(fread(ObjectFile, Line))
{
if(Line[0] == '/' || isnull(Line)) continue;
unformat(Line, "ffffffiii", OX, OY, OZ, ORX, ORY, ORZ, OVW, OINT, oModel);
CreateDynamicObject(oModel, Float:OX, Float:OY, Float:OZ, Float:ORX, Float:ORY, Float:ORZ, OVW, OINT, -1, 200.0);
oTotal++;
}
fclose(ObjectFile);
return oTotal;
}
Re: error undefined symble unformat need help. -
Konstantinos - 03.12.2012
pawn Код:
// At the top
#include < sscanf2 >
Re: error undefined symble unformat need help. -
jueix - 03.12.2012
Quote:
Originally Posted by Dwane
pawn Код:
// At the top #include < sscanf2 >
|
C:\Users\Jueix\Desktop\Sa-mp\pawno\include\sscanf2.inc(27) : error 025: function heading differs from prototype
C:\Users\Jueix\Desktop\Sa-mp\pawno\include\sscanf2.inc(27) : error 025: function heading differs from prototype
I've got this
#include <sscanf> but if i put the sscanf2 in it says that error if i remove sscanf then put sscanf2 in it compile's won't it bring bug's to my server tho?
Re: error undefined symble unformat need help. -
Konstantinos - 03.12.2012
Delete the include/plugin and anything related to sscanf from your server folder.
Re-download it from here (latest version):
http://dl.dropbox.com/u/21683085/sscanf.rar
Add the sscanf2.inc to your folder/pawno/includes and the sscanf.dll or if you're using Linux, sscanf.so and add again to your script, at the top
Don't have < sscanf >, just the above.