Licenseplate
#1

Hey!)(#
i'm doing a system where you have to write car license plate which is under cars.cfg and last line where i made cPlate ex. ABC 123. When you enter correct text and number (ABC 123) into dialog then something happens.
my little code
pawn Код:
if(dialogid == NEEMO)
        {
            for(new h = 184; h < sizeof(CarInfo); h++)
            {
                new newcar = GetPlayerVehicleID(playerid);
                if(strlen(inputtext) == CarInfo[newcar][cPlate])
                {
                    SendClientMessage(playerid,COLOR_WHITE,"Correct");
                    return 1;
                }
                else
                {
                    SendClientMessage(playerid, COLOR_YELLOW,"Incorrect");
                    return 1;
                }
            }
        }
But when i type correct cPlate (ABC 123) into input dialog it still says me "incorrect"
Reply


Messages In This Thread
Licenseplate - by Kenka - 04.08.2011, 08:58
Re: Licenseplate - by PrawkC - 04.08.2011, 09:09
Re: Licenseplate - by Kenka - 04.08.2011, 09:21
Re: Licenseplate - by iPLEOMAX - 04.08.2011, 09:46
Re: Licenseplate - by MadeMan - 04.08.2011, 11:13
Re: Licenseplate - by Kenka - 04.08.2011, 12:21
Re: Licenseplate - by MadeMan - 04.08.2011, 12:24
Re: Licenseplate - by Kenka - 04.08.2011, 12:31
Re: Licenseplate - by Kenka - 04.08.2011, 13:08

Forum Jump:


Users browsing this thread: 1 Guest(s)