SA-MP Forums Archive
Scripting Errors - 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: Scripting Errors (/showthread.php?tid=417501)



Scripting Errors - SiRbEaSt - 21.02.2013

I get this error:

Quote:

undefined playerid

On those lines:

Quote:

RemoveBuildingForPlayer(playerid, 4124, 1653.4844, -1826.6406, 23.9219, 0.25);
RemoveBuildingForPlayer(playerid, 4212, 1661.8047, -1826.7188, 24.8281, 0.25);
RemoveBuildingForPlayer(playerid, 1266, 1648.0156, -1795.0703, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 4229, 1597.9063, -1699.7500, 30.2109, 0.25);
RemoveBuildingForPlayer(playerid, 4230, 1597.9063, -1699.7500, 30.2109, 0.25);
RemoveBuildingForPlayer(playerid, 4227, 1614.6328, -1862.2109, 14.0156, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1659.9688, -1867.7188, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 1226, 1683.1875, -1851.9609, 16.4219, 0.25);
RemoveBuildingForPlayer(playerid, 4123, 1653.4844, -1826.6406, 23.9219, 0.25);
RemoveBuildingForPlayer(playerid, 1260, 1648.0156, -1795.0703, 25.0391, 0.25);
RemoveBuildingForPlayer(playerid, 1283, 1688.9141, -1826.5078, 15.6250, 0.25);

What I need to add to solve those errors?


Re: Scripting Errors - SilverKiller - 21.02.2013

Are you putting it under OnPlayerConnect?


Re: Scripting Errors - dannyk0ed - 21.02.2013

Download https://sampforum.blast.hk/showthread.php?pid=1551937#pid1551937

Then you can place it under OnGameModeint
Example
pawn Код:
RemoveBuilding(4124, 1653.4844, -1826.6406, 23.9219, 0.25);



Re: Scripting Errors - SiRbEaSt - 21.02.2013

Quote:
Originally Posted by SilverKiller
Посмотреть сообщение
Are you putting it under OnPlayerConnect?
Ye that was the problem...sorry lol thanks for the help.

Quote:
Originally Posted by dannyk0ed
Посмотреть сообщение
Download https://sampforum.blast.hk/showthread.php?pid=1551937#pid1551937

Then you can place it under OnGameModeint
Example
pawn Код:
RemoveBuilding(4124, 1653.4844, -1826.6406, 23.9219, 0.25);
Not neccesery but thanks for the help anyway.


Re: Scripting Errors - PabloDiCostanzo - 21.02.2013

You must pust that in OnPlayerConnect callback


Re: Scripting Errors - Skaizo - 21.02.2013

put in public OnPlayerConnect
PS:ups,i didn't se that problem is solved


Re: Scripting Errors - SilverKiller - 21.02.2013

Guys the problem is already solved, so why do you even reply back with the solution?