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



[Help] Mapping Filterscript - GeasyW - 26.04.2014

I mapped something with MTA, and after i converted it.. I tired to make a mapping filterscript.
Sadly, RemoveBuildingForPlayer is giving me a Error (Warning) when i try to Compile it..
here's the warning that pops out..
pawn Код:
C:\Users\GeasyW/Desktop\MAPPINGS\MapForGeasy.pwn(14) : warning 217: loose indentation
C:\Users\GeasyW\Desktop\MAPPINGS\MapForGeasy.pwn(477) : error 017: undefined symbol "playerid"
C:\Users\GeasyW\Desktop\MAPPINGS\MapForGeasy.pwn(478) : error 017: undefined symbol "playerid"
C:\Users\GeasyW\Desktop\MAPPINGS\MapForGeasy.pwn(479) : error 017: undefined symbol "playerid"
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


3 Errors.
And here's the Pawno code (I put here only the RemoveBuildingForPlayer part, cos the CreateObject one is alright)
pawn Код:
public OnPlayerConnect ()
{
RemoveBuildingForPlayer(playerid, 4067, 1630.5234, -1486.8594, 17.1563, 0.25);
RemoveBuildingForPlayer(playerid, 4084, 1643.4297, -1520.3047, 14.3438, 0.25);
RemoveBuildingForPlayer(playerid, 4059, 1630.5234, -1486.8594, 17.1563, 0.25);
return 1;
}
I need this done ASAP.


Re: [Help] Mapping Filterscript - JeaSon - 26.04.2014

pawn Код:
public OnPlayerConnect (playerid)
{
RemoveBuildingForPlayer(playerid, 4067, 1630.5234, -1486.8594, 17.1563, 0.25);
RemoveBuildingForPlayer(playerid, 4084, 1643.4297, -1520.3047, 14.3438, 0.25);
RemoveBuildingForPlayer(playerid, 4059, 1630.5234, -1486.8594, 17.1563, 0.25);
return 1;
}



Re: [Help] Mapping Filterscript - GeasyW - 26.04.2014

Quote:
Originally Posted by Namer
Посмотреть сообщение
pawn Код:
public OnPlayerConnect (playerid)
{
RemoveBuildingForPlayer(playerid, 4067, 1630.5234, -1486.8594, 17.1563, 0.25);
RemoveBuildingForPlayer(playerid, 4084, 1643.4297, -1520.3047, 14.3438, 0.25);
RemoveBuildingForPlayer(playerid, 4059, 1630.5234, -1486.8594, 17.1563, 0.25);
return 1;
}
pawn Код:
C:\Users\GeasyW\Desktop\MAPPINGS\MapForGeasy.pwn(17) : warning 217: loose indentation
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


1 Warning.



Re: [Help] Mapping Filterscript - JeaSon - 26.04.2014

its just warning !
is this warning in onplayerconnect ??


Re: [Help] Mapping Filterscript - GeasyW - 26.04.2014

weird, it's on CreateObject.. And that code is. Copy pasted from convertffs..
I think it should work fine now..


Re: [Help] Mapping Filterscript - AroseKhanNiazi - 26.04.2014

pawn Код:
public OnPlayerConnect(playerid)
{
        RemoveBuildingForPlayer(playerid, 4067, 1630.5234, -1486.8594, 17.1563, 0.25);
        RemoveBuildingForPlayer(playerid, 4084, 1643.4297, -1520.3047, 14.3438, 0.25);
        RemoveBuildingForPlayer(playerid, 4059, 1630.5234, -1486.8594, 17.1563, 0.25);
        return 1;
}
Compile now