SA-MP Forums Archive
How to fix this Error? - 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: How to fix this Error? (/showthread.php?tid=331232)



How to fix this Error? - sampmark05 - 04.04.2012

When i compiled my script, this is error comes up but i have the latest streamer 2.6 by Icognito.
Код:
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : error 017: undefined symbol "distance"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : warning 215: expression has no effect
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.
This is the code
Код:
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);
		++iIndex;



Re: How to fix this Error? - Reklez - 04.04.2012

pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 10.0, 1, 30.0);



Re: How to fix this Error? - sampmark05 - 04.04.2012

Quote:
Originally Posted by Reklez
Посмотреть сообщение
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 10.0, 1, 30.0);
Not working
Код:
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(17096) : warning 213: tag mismatch
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(52476) : error 017: undefined symbol "distance"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(52476) : warning 215: expression has no effect
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(52476) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(52476) : error 029: invalid expression, assumed zero
C:\Documents and Settings\JUN.DELL\My Documents\Downloads\Games Installer\Next Revolution Roleplay\Next Revolution Roleplay\Next Revolution Roleplay\gamemodes\NRRP.pwn(52476) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


4 Errors.



Re: How to fix this Error? - TzAkS. - 04.04.2012

You need to change that line
Код:
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);
with this,or the error is on another line.
Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 10.0, 1, 30.0);