Need help with some few errors
#1

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);
Reply
#2

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.
Reply
#3

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
}
Reply
#4

Код:
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
Reply
#5

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;
Reply
#6

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.
Reply
#7

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
Reply
#8

Oh, no idea then sorry!

Presumed you were using 0.3e
Reply
#9

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

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

Bumb
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)