Help with OnPlayerUpdate
#1

C:\Documents and Settings\user\My Documents\GTA San Andreas User Files\SAMP\gamemodes\Server2.pwn(431) : error 029: invalid expression, assumed zero
C:\Documents and Settings\user\My Documents\GTA San Andreas User Files\SAMP\gamemodes\Server2.pwn(431) : error 004: function "OnPlayerUpdate" is not implemented
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


2 Errors.

its on OnPlayerUpdate

I typed public OnPlayerUpdate(playerid)
}
Its not working
Reply
#2

It should be already in your script, so why add it?
Reply
#3

Because It got deleted when i added pickups there were some problems so i deleted that callback and now not working
Reply
#4

Then take this:

PHP код:
public OnPlayerUpdate(playerid)
{
    return 
1;

Reply
#5

Quote:
Originally Posted by Cookie.
Посмотреть сообщение
I typed public OnPlayerUpdate(playerid)
}
Its not working
Obviously it's not, because it's

PHP код:
public OnPlayerUpdate(playerid)
// ----
    
return 1;

Reply
#6

nope still same errors
Reply
#7

Are you sure about including a_samp ?
What version of SA-MP PAWN includes do you own?
Reply
#8

I updated them 2 weeks ago,and yes i included a_samp its default
Reply
#9

It's not about out-dated includes. Cookie, you might need to show the whole scope that the errors are in to us.
Reply
#10

public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,5.0,2568.199951 1719,-1305.8000488281,1062)
)
GameTextForPlayer(playerid,"Type ~r~ /exit",5000,5);
}
return 1;
}
There
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)