[SOLVED] symbol already defined - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: [SOLVED] symbol already defined (
/showthread.php?tid=106740)
[SOLVED] symbol already defined -
FreddeN - 05.11.2009
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
Re: [HELP] symbol already defined -
Nero_3D - 05.11.2009
onplayerupdate is since 0.2 a native public which gets called if a player sends data
You should rename your OnPlayerUpdate to something else
Re: [HELP] symbol already defined -
MachineHead - 05.11.2009
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.
Re: [HELP] symbol already defined -
FreddeN - 05.11.2009
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...
It works by the way, so thank you
Re: [HELP] symbol already defined -
FreddeN - 05.11.2009
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
Re: [SOLVED] symbol already defined -
Nero_3D - 05.11.2009
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