"RemoveBuildingForPlayer" problem
#1

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

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;
}
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)