OnPlayerUpdate ??
#1

SOLVED
Reply
#2

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

i dont get it
Reply
#4

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

but theres no OnPlayerUpdate in my gm

i searched them all
Reply
#6

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;
}
Reply
#7

ohh yes theres onplayerupdate in my include

SOLVED
Reply
#8

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");
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)