SA-MP Forums Archive
im having error issues on removing a building - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP (https://sampforum.blast.hk/forumdisplay.php?fid=3)
+--- Forum: General (https://sampforum.blast.hk/forumdisplay.php?fid=13)
+--- Thread: im having error issues on removing a building (/showthread.php?tid=330022)



im having error issues on removing a building - stlane - 31.03.2012

THE ERRORS

C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16914) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16915) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16916) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16917) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(1691 : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16919) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16920) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16921) : error 017: undefined symbol "playerid"
C:\DOCUME~1\Spencer\Desktop\NEXTGE~1\GAMEMO~1\NGRP _N~1.PWN(16922) : error 017: undefined symbol "playerid"


THE CODE I WANT TO WORK

public OnGameModeInit()
{
//Removed places
RemoveBuildingForPlayer(playerid, 4025, 1777.8359, -1773.9063, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4070, 1719.7422, -1770.7813, 23.4297, 0.25);
RemoveBuildingForPlayer(playerid, 4075, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4077, 1781.4766, -1648.4219, 26.8359, 0.25);
RemoveBuildingForPlayer(playerid, 4215, 1777.5547, -1775.0391, 36.7500, 0.25);
RemoveBuildingForPlayer(playerid, 3986, 1719.7422, -1770.7813, 23.4297, 0.25);
RemoveBuildingForPlayer(playerid, 4019, 1777.8359, -1773.9063, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4018, 1791.7969, -1716.9844, 12.5234, 0.25);
RemoveBuildingForPlayer(playerid, 4028, 1781.4766, -1648.4219, 26.8359, 0.25);


Re: im having error issues on removing a building - Kitten - 31.03.2012

Add it on a callback called "OnPlayerConnect", OnGameModeInit does not have the playerid defined you can looping it, if you want it to be in that callback.


Re: im having error issues on removing a building - Alex Valdez - 31.03.2012

I've had this same problem, do what kitten said.

Just put it under OnPlayerConnect, so it should look like this
public OnPlayerConnect(playerid)
{
RemoveBuildingForPlayer(playerid, xxx,xxx,xxx,xxxxx) etc.


Re: im having error issues on removing a building - Infinity - 31.03.2012

Not using an illegally leaked script would help a bunch...