05.12.2010, 10:04
Use &&
pawn Код:
if(dialogid == ADMIN_CARSID_DIALOG)
{
if(!response) return SendClientMessage(playerid, COLOR_LIGHTRED, " You Canceled!");
new carid = strval(inputtext);
if(!IsNumeric(inputtext)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Please use numbers as a ID of your car. [HINT]: Please use ID 400-605.");
if(inputtext[0] > 400 && inputtext[0] < 605)// Here is the problem, I think. :S
{
new Float:X, Float:Y, Float:Z, Float:A;
GetPlayerFacingAngle(playerid, A);
GetPlayerPos(playerid,X, Y, Z);
AdminCar = AddStaticVehicle(carid, X+2, Y+3, Z, A, 0, 0);
SendClientMessage(playerid, COLOR_GREEN, " You got your car!");
}
else return SendClientMessage(playerid, COLOR_LIGHTRED, "Sorry, but we can't find a car with ID you wanted. [HINT]: Please use ID 400-605.");
}