Undefined Symbol Distance - 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: Undefined Symbol Distance (
/showthread.php?tid=447869)
Undefined Symbol Distance -
ThePhenix - 02.07.2013
Why am I receiving those errors?
Код HTML:
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\pawno\include\../include/g_mysql.inc(428) : warning 235: public function lacks forward declaration (symbol "OnQueryError")
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\gamemodes\NGG.pwn(16378) : error 017: undefined symbol "distance"
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\gamemodes\NGG.pwn(16378) : warning 215: expression has no effect
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\gamemodes\NGG.pwn(16378) : error 001: expected token: ";", but found ")"
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\gamemodes\NGG.pwn(16378) : error 029: invalid expression, assumed zero
C:\Users\Mighty\Desktop\samp03x_svr_R1-2_win32\gamemodes\NGG.pwn(16378) : fatal error 107: too many error messages on one line
Compilation aborted.Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
4 Errors.
Line:
PHP код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0, .testlos = 1, .distance = 30.0);
Re: Undefined Symbol Distance -
DobbysGamertag - 02.07.2013
Try this:
I removed the words there.
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,10.0,1,30.0);
Edit:
Usually a "lacks forward declaration" is fixed by doing
So in your case,go to the include, and add this:
It sounds like SQL. So i may be wrong on the above statement.
Re: Undefined Symbol Distance -
Neo Karls - 02.07.2013
I tell you what
First CTRL+H then copy and paste the below line
Then replace it with below line (REPLACE ALL)