Already defined but No!
#1

Hi, this simple code shows the money and not the score:

pawn Код:
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
    return 1;
}
This is the ONLY one OnPlayerUpdate that i have but i see:

Quote:

C:\Users\Luca\Desktop\BaseScript\gamemodes\base.pw n(3725) : error 021: symbol already defined: "OnPlayUpdate"

Reply
#2

Possibly a problem with brackets.
Reply
#3

wich one? O.o
Reply
#4

Hi Gooday,

That warning usually means that the "OnPlayerUpdate" function has already been called somewhere else.

See if you have
pawn Код:
public OnPlayerUpdate()
anywhere else in your code/includes. If you do, you need to combine them.

Cheers,

TJ
Reply
#5

"OnPlayUpdate"? Was that a typo?

If not, you should probably check your includes, maybe the library (include) author hasn't done a proper method of Hooking.
Reply
#6

Look at the error clearly! It is telling you about "OnPlayUpdare", not "OnPlayerUpdate"! Search for it - as iPLEOMAX said - in your script, you probably got it twice defined!
Reply
#7

Код:
public OnPlayerUpdate(playerid)
{
    SetPlayerScore(playerid, GetPlayerMoney(playerid));
	return 1;
}
Make sure you didn't retype the OnPlayerUpdate because i just put it my FCRP script to check if it would work it did so make sure you check that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)