SA-MP Forums Archive
Help with 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)
+--- Thread: Help with OnPlayerUpdate (/showthread.php?tid=385970)



Help with OnPlayerUpdate - Cookie. - 18.10.2012

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


Re: Help with OnPlayerUpdate - gtakillerIV - 18.10.2012

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


Re: Help with OnPlayerUpdate - Cookie. - 18.10.2012

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


Re: Help with OnPlayerUpdate - gtakillerIV - 18.10.2012

Then take this:

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




Re: Help with OnPlayerUpdate - CmZxC - 18.10.2012

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;




Re: Help with OnPlayerUpdate - Cookie. - 18.10.2012

nope still same errors


Re: Help with OnPlayerUpdate - CmZxC - 18.10.2012

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


Re: Help with OnPlayerUpdate - Cookie. - 18.10.2012

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


Re: Help with OnPlayerUpdate - [KHK]Khalid - 18.10.2012

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


Re: Help with OnPlayerUpdate - Cookie. - 19.10.2012

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