SA-MP Forums Archive
Need help with some few errors - 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: Need help with some few errors (/showthread.php?tid=377808)



Need help with some few errors - HyDrAtIc - 15.09.2012

Hello guys


help me fixing those errors

Код:
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : error 017: undefined symbol "distance"
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : error 001: expected token: ";", but found ")"
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : error 029: invalid expression, assumed zero
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : fatal error 107: too many error messages on one line

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


4 Errors.
Here's the line:

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



Re: Need help with some few errors - RLGaming - 15.09.2012

Change .distance to .streamdistance!

Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .streamdistance = 30.0);
There you go.


Re: Need help with some few errors - Cxnnor - 15.09.2012

pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .streamdistance = 30.0)
Semi-colon isn't needed. If that doesn't work, check to ensure you have the two brackets.

pawn Код:
{
    // Code
}



AW: Need help with some few errors - BiosMarcel - 15.09.2012

Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, 1,30);
Semi-Colon is needed but he must remove the words


Re: AW: Need help with some few errors - HyDrAtIc - 15.09.2012

Quote:
Originally Posted by [Bios]Marcel
Посмотреть сообщение
Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, 1,30);
Semi-Colon is needed but he must remove the words
Thanks this one worked but now i have these errors

Код:
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(16901) : warning 217: loose indentation
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(52475) : error 017: undefined symbol "distance"
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(52475) : warning 215: expression has no effect
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(52475) : error 001: expected token: ";", but found ")"
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(52475) : error 029: invalid expression, assumed zero
C:\Users\Mohamed\Desktop\New York City Roleplay\gamemodes\NYRP.pwn(52475) : 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:

pawn Код:
HouseInfo[house][hTextID] = CreateDynamic3DTextLabel( string, COLOR_GREEN, HouseInfo[house][hExteriorX], HouseInfo[house][hExteriorY], HouseInfo[house][hExteriorZ]+0.5, 30.0, .testlos = 1, .distance = 30.0);
        return 1;



Re: Need help with some few errors - RLGaming - 15.09.2012

As I said before..

Change .distance to .streamdistance.
Quote:

HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5,30.0, .testlos = 1, .streamdistance = 30.0);

I had this problem before, changing it to .streamdistance fixed it for me.


Re: Need help with some few errors - HyDrAtIc - 15.09.2012

Quote:
Originally Posted by RLGaming
Посмотреть сообщение
As I said before..

Change .distance to .streamdistance.


I had this problem before, changing it to .streamdistance fixed it for me.
I actually did that didn't work but just one note I'm using the sa-mp 0.3d includes


Re: Need help with some few errors - RLGaming - 15.09.2012

Oh, no idea then sorry!

Presumed you were using 0.3e


Re: Need help with some few errors - HyDrAtIc - 15.09.2012

Quote:
Originally Posted by RLGaming
Посмотреть сообщение
Oh, no idea then sorry!

Presumed you were using 0.3e
Well,no problem anyway thank you for helping!


Re: Need help with some few errors - HyDrAtIc - 15.09.2012

Bumb