symbol already defined
#1

How to fix in pawno : if I added
RemoveBuildingForPlayer(........);
and compile it says symbol already defined , how to fix this ?
Reply
#2

U have the code already.
Reply
#3

Are you using it in OnPlayerConnect?
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)