SA-MP Forums Archive
[Help] Map - 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: [Help] Map (/showthread.php?tid=471736)



[Help] Map - DuongNghia - 25.10.2013

Код:
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(265) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(266) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(267) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(268) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(269) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(270) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(271) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(272) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(273) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(274) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(275) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(276) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(277) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(278) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(279) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(280) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(281) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(282) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(283) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(284) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(285) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(286) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(287) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(288) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(289) : error 017: undefined symbol "playerid"
D:\VN-RP\VN-RP\filterscripts\House Island.pwn(290) : error 017: undefined symbol "playerid"

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


26 Errors.



Re: [Help] Map - JonnyDeadly - 25.10.2013

The area of the filterscript where these errors are appearing (lines 265-290) does not refer to the player or uses another variable to do so. Please show the code on the lines where these errors appear.


Re: [Help] Map - DuongNghia - 25.10.2013

?


Re: [Help] Map - JonnyDeadly - 25.10.2013

Quote:
Originally Posted by JonnyDeadly
Посмотреть сообщение
Please show the code on the lines where these errors appear.
^ This. :P


Re: [Help] Map - DuongNghia - 25.10.2013

Код:
RemoveBuildingForPlayer(playerid, 5156, 2838.0391, -2423.8828, 10.9609, 0.25);
RemoveBuildingForPlayer(playerid, 5159, 2838.0313, -2371.9531, 7.2969, 0.25);
RemoveBuildingForPlayer(playerid, 5160, 2829.9531, -2479.5703, 5.2656, 0.25);
RemoveBuildingForPlayer(playerid, 5161, 2838.0234, -2358.4766, 21.3125, 0.25);
RemoveBuildingForPlayer(playerid, 5162, 2838.0391, -2423.8828, 10.9609, 0.25);



Re: [Help] Map - JonnyDeadly - 25.10.2013

RemoveBuildingForPlayer, I figured as much xP. You're going to want to move these functions under OnPlayerConnect(), as I assume they are currently under OnFilterScriptInit().


Re: [Help] Map - DuongNghia - 25.10.2013

- Thanks


Re: [Help] Map - DuongNghia - 25.10.2013

Quote:
Originally Posted by JonnyDeadly
Посмотреть сообщение
RemoveBuildingForPlayer, I figured as much xP. You're going to want to move these functions under OnPlayerConnect(), as I assume they are currently under OnFilterScriptInit().
I move me map under OnPlayerConnect() or OnFilterScriptInit() ??


Re: [Help] Map - Superhot - 25.10.2013

Put it onplayerconnect.


Re: [Help] Map - Tropicali - 25.10.2013

RemoveBuildingForPlayer goes under:

pawn Код:
public OnPlayerConnect()
{
    RemoveBuildingForPlayer(ecetra);
}
Where-as regular mapping codes go under:
pawn Код:
public OnGameModeInit()
{
    CreateObject(ecetra);
}