[SOLVED] symbol already defined
#1

Hello Again.

I am trying to make a new Register System by my self, and it is almost completed, just one step left, to get rid of this error...

Код:
symbol already defined: "OnPlayerUpdate"
Here is the script, http://pastebin.com/f46cda5c

Go to Line 1138, it is there the error is coming from.

Thanks
Reply
#2

onplayerupdate is since 0.2 a native public which gets called if a player sends data

You should rename your OnPlayerUpdate to something else
Reply
#3

Quote:
Originally Posted by FreddeN
Hello Again.

I am trying to make a new Register System by my self, and it is almost completed, just one step left, to get rid of this error...

Код:
symbol already defined: "OnPlayerUpdate"
Here is the script, http://pastebin.com/f46cda5c

Go to Line 1138, it is there the error is coming from.

Thanks
Line 1029

Код:
public OnPlayerUpdate(playerid)

{
    return 1;
}
Get rid of one.
Reply
#4

Quote:
Originally Posted by ♣ ⓐⓢⓢ
onplayerupdate is since 0.2 a native public which gets called if a player sends data

You should rename your OnPlayerUpdate to something else
Thanks, changed it to something like...

Код:
OnPlayerSaveStats
It works by the way, so thank you
Reply
#5

Quote:
Originally Posted by clum'
Quote:
Originally Posted by FreddeN
Hello Again.

I am trying to make a new Register System by my self, and it is almost completed, just one step left, to get rid of this error...

Код:
symbol already defined: "OnPlayerUpdate"
Here is the script, http://pastebin.com/f46cda5c

Go to Line 1138, it is there the error is coming from.

Thanks
Line 1029

Код:
public OnPlayerUpdate(playerid)

{
    return 1;
}
Get rid of one.
That worked to, now I have to choose what to do :P

Thanks
Reply
#6

Yes, removing the duplicate is a way but not always the right

If your public would be called OnPlayerUpdate it would be called more as 2 times pers second (glorification, actually its much worse)

I just want tell you if you let it like it was, it could stress the server and lag attacks will appear
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)