OnPlayerText
#9

so: for example..

pawn Код:
public OnPlayerText(playerid, text[])
{
    if IsPlayerInRangeOfPoint(x,y,z)
    {
        if(text == 1) return RepairVehicle;
        if(text == 2) return RefuelVehicle;
        if(text == 3) return AddNosToVehicle;
    }
    return 1;
}
is this a right way, i think text == number is wrong or something.
Reply


Messages In This Thread
OnPlayerText - by AnonScripter - 27.09.2013, 20:59
Re: OnPlayerText - by Konstantinos - 27.09.2013, 21:44
Re: OnPlayerText - by DanishHaq - 27.09.2013, 21:50
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:00
Re: OnPlayerText - by Mattakil - 27.09.2013, 22:07
Re: OnPlayerText - by Pottus - 27.09.2013, 22:12
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:27
Re: OnPlayerText - by Pottus - 27.09.2013, 22:44
Re: OnPlayerText - by AnonScripter - 27.09.2013, 22:58
Re: OnPlayerText - by Pottus - 27.09.2013, 23:08

Forum Jump:


Users browsing this thread: 5 Guest(s)