PDA

View Full Version : Scripting Errors


SiRbEaSt
21/02/2013, 03:01 PM
I get this error:

undefined playerid

On those lines:

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?

SilverKiller
21/02/2013, 03:04 PM
Are you putting it under OnPlayerConnect?

dannyk0ed
21/02/2013, 03:08 PM
Download http://forum.sa-mp.com/showthread.php?p=1551937

Then you can place it under OnGameModeint
Example
RemoveBuilding(4124, 1653.4844, -1826.6406, 23.9219, 0.25);

SiRbEaSt
21/02/2013, 03:11 PM
Are you putting it under OnPlayerConnect?

Ye that was the problem...sorry lol thanks for the help.

Download http://forum.sa-mp.com/showthread.php?p=1551937

Then you can place it under OnGameModeint
Example
RemoveBuilding(4124, 1653.4844, -1826.6406, 23.9219, 0.25);

Not neccesery but thanks for the help anyway.

PabloDiCostanzo
21/02/2013, 03:11 PM
You must pust that in OnPlayerConnect callback

Skaizo
21/02/2013, 03:15 PM
put in public OnPlayerConnect
PS:ups,i didn't se that problem is solved

SilverKiller
21/02/2013, 03:17 PM
Guys the problem is already solved, so why do you even reply back with the solution?