How to fix 1 error and 1 warning? [+Rep] - 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)
+--- Thread: How to fix 1 error and 1 warning? [+Rep] (
/showthread.php?tid=316590)
How to fix 1 error and 1 warning? [+Rep] -
dundolina - 07.02.2012
warning 202: number of arguments does not match definition
error 004: function "OnPlayerUpdate" is not implemented
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
Re: How to fix 1 error and 1 warning? [+Rep] -
IceCube! - 07.02.2012
Can you paste The above and the below publics please?
Re: How to fix 1 error and 1 warning? [+Rep] -
dundolina - 07.02.2012
(13433) : warning 202: number of arguments does not match definition
SetPlayerPos(playerid, -688.1378,946.8740,13.0313,0.8827);
(13797) : error 004: function "OnPlayerUpdate" is not implemented
OnPlayerUpdate(playerid);
Re: How to fix 1 error and 1 warning? [+Rep] -
IceCube! - 07.02.2012
Error 13433 = SetPlayerPos(playerid, -688.1378,946.8740,13.0313);
Error 13797 = Your missing a bracket in the function above. Post the last few lines of the public like I wanted or ry using the link below
http://boylett.com/scripts/autoindent.php
Re: How to fix 1 error and 1 warning? [+Rep] -
iTorran - 07.02.2012
pawn Код:
public OnPlayerUpdate(playerid)
{
return 1;
}
// Somewhere on your script
OnPlayerUpdate(playerid);
However, you do not need to call it. It is called enough times already.