SA-MP Forums Archive
A few errors/warnings on ONE line! - 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: A few errors/warnings on ONE line! (/showthread.php?tid=404454)



A few errors/warnings on ONE line! - Vinninho - 03.01.2013

Here is the result

Код:
C:\Users\Vinay\AppData\Local\Temp\Rar$DI66.896\KGRP.pwn(16897) : error 017: undefined symbol "distance"
C:\Users\Vinay\AppData\Local\Temp\Rar$DI66.896\KGRP.pwn(16897) : warning 215: expression has no effect
C:\Users\Vinay\AppData\Local\Temp\Rar$DI66.896\KGRP.pwn(16897) : error 001: expected token: ";", but found ")"
C:\Users\Vinay\AppData\Local\Temp\Rar$DI66.896\KGRP.pwn(16897) : error 029: invalid expression, assumed zero
C:\Users\Vinay\AppData\Local\Temp\Rar$DI66.896\KGRP.pwn(16897) : fatal error 107: too many error messages on one line

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


4 Errors.
And here is the corresponding line:

Код:
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);
Thank you for reading, and I hope someone can solve this!

Thanks in advance!


Re: A few errors/warnings on ONE line! - DaRk_RaiN - 03.01.2013

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



Re: A few errors/warnings on ONE line! - Konstantinos - 03.01.2013

pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
You're missing parameters and you're using "." to skip them? I've seen that on the old version of YSI.
Just use all the parameters
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);



Re: A few errors/warnings on ONE line! - Vinninho - 03.01.2013

Quote:
Originally Posted by Dwane
Посмотреть сообщение
pawn Код:
CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:distance = 100.0);
You're missing parameters and you're using "." to skip them? I've seen that on the old version of YSI.
Just use all the parameters
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
Whenever I do that, this error appears
Код:
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : error 017: undefined symbol "distance"
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : warning 215: expression has no effect
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : error 001: expected token: ";", but found ")"
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : error 029: invalid expression, assumed zero
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : fatal error 107: too many error messages on one line

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


4 Errors.
And this is the line:
Код:
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);



Re: A few errors/warnings on ONE line! - Konstantinos - 03.01.2013

You did not change it. You still have your line which gaves the errors.

This is from the latest version of Streamer.
pawn Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
You need to have the latest include and plugin.


Re: A few errors/warnings on ONE line! - Vinninho - 03.01.2013

Quote:
Originally Posted by Dwane
Посмотреть сообщение
You did not change it. You still have your line which gaves the errors.

This is from the latest version of Streamer.
pawn Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 0, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
You need to have the latest include and plugin.
Where should I add that, I'm quite new to scripting and so on.


Re: A few errors/warnings on ONE line! - Konstantinos - 03.01.2013

You don't need to add that anywhere, if you're include
pawn Код:
#include < streamer >
it includes it by itself. Just replace your code
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);
With
pawn Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);



Re: A few errors/warnings on ONE line! - Vinninho - 03.01.2013

I just updated the streamer, and I had the include on top of my script.


Yet I receive these errors:

Код:
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52472) : error 017: undefined symbol "iIndex"
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52519) : error 017: undefined symbol "distance"
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52519) : warning 215: expression has no effect
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52519) : error 001: expected token: ";", but found ")"
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52519) : error 029: invalid expression, assumed zero
C:\Users\Vinay\Downloads\Script like ngrp\New Folder\gamemodes\KGRP.pwn(52519) : fatal error 107: too many error messages on one line

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


5 Errors.
52472
Код:
HouseInfo[iIndex][hTextID] = CreateDynamic3DTextLabel(szFileStr, COLOR_GREEN, HouseInfo[iIndex][hExteriorX], HouseInfo[iIndex][hExteriorY], HouseInfo[iIndex][hExteriorZ]+0.5, 30.0, INVALID_PLAYER_ID, INVALID_VEHICLE_ID, 1, -1, -1, -1, 30.0);
52519
Код:
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);
I would really apreciate if someone could fix this for me!


Re: A few errors/warnings on ONE line! - Konstantinos - 03.01.2013

Do you have teamviewer? If you do, send me the ID and the Password via PM.


Re: A few errors/warnings on ONE line! - Vinninho - 03.01.2013

Quote:
Originally Posted by Dwane
Посмотреть сообщение
Do you have teamviewer? If you do, send me the ID and the Password via PM.
Just sent you .