if any one tell me??? [+REP]
#3

I think the easiest way is to just use strcmp for that, here's an example of one I made:

pawn Код:
CMD:key(pid, arg[])
{
    if(IsPlayerInAnyVehicle(pid))
    {
        new vehicleid = GetPlayerVehicleID(pid);
       
        new choice[5], engine, lights, alarm, doors, bonnet, boot, objective;

        GetVehicleParamsEx(vehicleid, engine, lights, alarm, doors, bonnet, boot, objective);
       
        if(sscanf(arg, "s[5]", choice)) return  SendMessage(pid, 2, "/key [off][on][acc]");
        if(!strcmp(choice, "off"))
        {
Reply


Messages In This Thread
if any one tell me??? [+REP] - by PAF - 12.06.2014, 17:10
Re : if any one tell me??? [+REP] - by S4t3K - 12.06.2014, 17:13
Re: if any one tell me??? [+REP] - by TakeiT - 12.06.2014, 17:14
Re: Re : if any one tell me??? [+REP] - by PAF - 12.06.2014, 17:16
Re : if any one tell me??? [+REP] - by S4t3K - 12.06.2014, 17:18
Re: if any one tell me??? [+REP] - by TakeiT - 12.06.2014, 17:18
Re: if any one tell me??? [+REP] - by PAF - 12.06.2014, 17:24
Re: if any one tell me??? [+REP] - by PAF - 12.06.2014, 17:26

Forum Jump:


Users browsing this thread: 5 Guest(s)