Scripting Errors
#1

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?
Reply
#2

Are you putting it under OnPlayerConnect?
Reply
#3

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);
Reply
#4

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.
Reply
#5

You must pust that in OnPlayerConnect callback
Reply
#6

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)