SA-MP Forums Archive
"RemoveBuildingForPlayer" problem - 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: "RemoveBuildingForPlayer" problem (/showthread.php?tid=438047)



"RemoveBuildingForPlayer" problem - Craker - 18.05.2013

when i try to compile my script
an error show up :

Код:
C:\Users\dell\Desktop\samp-server\gamemodes\objects.pwn(5) : error 021: symbol already defined: "RemoveBuildingForPlayer"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


1 Error.
my pwn :

Код:
#include <a_samp>
#include <streamer>


RemoveBuildingForPlayer(playerid, 1226, 2489.0859, -1744.2109, 16.2031, 0.25);
RemoveBuildingForPlayer(playerid, 1290, 2529.9922, -1609.7109, 22.6094, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 2625.3828, -1633.1484, 25.4922, 0.25);



Re: "RemoveBuildingForPlayer" problem - Threshold - 18.05.2013

You need to place these lines in a callback, in this instance, OnPlayerConnect.

pawn Код:
public OnPlayerConnect(playerid)
{
    RemoveBuildingForPlayer(playerid, 1226, 2489.0859, -1744.2109, 16.2031, 0.25);
    RemoveBuildingForPlayer(playerid, 1290, 2529.9922, -1609.7109, 22.6094, 0.25);
    RemoveBuildingForPlayer(playerid, 1231, 2625.3828, -1633.1484, 25.4922, 0.25);
    return 1;
}