Simple job bug/problem
#5

No... you need to show where the checkpoint is set thats the same code as above and its too vague,

You need to realize that OnPlayerEnterCheckpoint is called for every checkpoint so for EX if i wanna make a certain checkpoint say "hi" i'll do it like this:
PHP код:
CMD:msghi(playeridprams[])
{
    
SetPlayerCheckPoint(playeridx,y,zrange);//setting the CP
    
playermsgcp[playerid] = true;//to determine the CP
    
return 1;

that's for setting, when you enter:
PHP код:
public OnPlayerEnterCheckpoint(playerid)
{
    if(
playermsgcp[playerid])//if the CP was set for that player
    
{
        
SendClientMessage(playerid, -1"hi");//send the msg
        
DisablePlayerCheckpoint(playerid);//disable the cP
        
playermsgcp[playerid] = false;//reset variable for next use.
        
}
    return 
1;

That's the basic idea, read that and compare to see where you went wrong.

On the other hand if you already knew what i explained above, show me where you set the player's CP and where is it called at the OPECP callback.
Reply


Messages In This Thread
Simple job bug/problem - by tbedy - 14.02.2018, 14:19
Re: Simple job bug/problem - by enzulikeS - 14.02.2018, 14:51
Re: Simple job bug/problem - by RogueDrifter - 14.02.2018, 14:53
Re: Simple job bug/problem - by tbedy - 14.02.2018, 14:57
Re: Simple job bug/problem - by RogueDrifter - 14.02.2018, 15:05
Re: Simple job bug/problem - by tbedy - 15.02.2018, 16:01

Forum Jump:


Users browsing this thread: 1 Guest(s)