04.08.2011, 08:58
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
But when i type correct cPlate (ABC 123) into input dialog it still says me "incorrect"
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;
}
}
}