OnPlayerKeyStateChange returning
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(playerhavesomething)
    {
        if(isplayerinrangeofpoint)
        {
            if(playerhavesomething2)
            {
                //
            }
        }
    }
    return 1;
}
You return 1 at the end, since it executed right. You almost always return 1 at the end of functions, which stops the code and lets the server know it worked correctly.
Reply


Messages In This Thread
OnPlayerKeyStateChange returning - by rOps - 30.01.2015, 20:09
Re: OnPlayerKeyStateChange returning - by Abagail - 30.01.2015, 20:13
Re: OnPlayerKeyStateChange returning - by CalvinC - 30.01.2015, 20:16
Re: OnPlayerKeyStateChange returning - by rOps - 30.01.2015, 20:17
Re: OnPlayerKeyStateChange returning - by Abagail - 30.01.2015, 20:47

Forum Jump:


Users browsing this thread: 1 Guest(s)