SA-MP Forums Archive
OnPlayerUpdate ?? - 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: OnPlayerUpdate ?? (/showthread.php?tid=252384)



SOLVED - Gray - 01.05.2011

SOLVED


Re: OnPlayerUpdate ?? - [MWR]Blood - 01.05.2011

Do not copy the "public OnPlayerUpdate", only the script inside it.


Re: OnPlayerUpdate ?? - Gray - 01.05.2011

i dont get it


Re: OnPlayerUpdate ?? - aircombat - 01.05.2011

that error means u have 2 "OnPlayerUpdate" callbacks so delete one


Re: OnPlayerUpdate ?? - Gray - 01.05.2011

but theres no OnPlayerUpdate in my gm

i searched them all


Re: OnPlayerUpdate ?? - Mean - 01.05.2011

He said he doesn't have 2 of them..

Maybe, you got one in your includes, or...

You can also use an external one, a timer instead:
pawn Код:
public OnPlayerConnect( playerid )
{
    SetTimerEx( "OnPlayerUpdateEx", 500, 1, "i", playerid );
    return 1;
}

forward OnPlayerUpdateEx( playerid );
public OnPlayerUpdateEx( playerid )
{
    // Your OnPlayerUpdateCode...
    return 1;
}



Re: OnPlayerUpdate ?? - Gray - 01.05.2011

ohh yes theres onplayerupdate in my include

SOLVED


Re : OnPlayerUpdate ?? - Myk3l - 01.05.2011

Don't use the OnPlayerUpdate callback !
This callback is call when playerid, for exemple, if you push Z one time, OnPlayerUpdate is not called 1 times, more ...

For test :

Код:
OnPlayerUpdate(playerid)
{
    print("OnPlayerUpdate -> Called");
}