Posts: 28
Threads: 6
Joined: Aug 2015
Reputation:
0
How to fix in pawno : if I added
RemoveBuildingForPlayer(........);
and compile it says symbol already defined , how to fix this ?
Posts: 1,504
Threads: 109
Joined: Jan 2012
Are you using it in OnPlayerConnect?
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Onfroi
Are you using it in OnPlayerConnect?
|
No, he's obviously not...
You must use it in a body. If you don't know what a body is, learn how to code.
So basically, as Onfroi said, RemoveBuildingForPlayer is typically used in OnPlayerConnect. Here is how:
pawn Код:
// Specify the callback's name, it's already forwarded for you in a_samp.inc
public OnPlayerConnect(playerid)
{ // Start a body
//Remove the building
RemoveBuildingForPlayer(playerid, bleh....);
//return 1 in OnPlayerConnect
return 1;
} // End the body