[Help] Creating cars by their ID's
#2

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.");
    }
Reply


Messages In This Thread
[Help] Creating cars by their ID's - by Alex_Valde - 05.12.2010, 10:02
Re: [Help] Creating cars by their ID's - by Zimon95 - 05.12.2010, 10:04
Re: [Help] Creating cars by their ID's - by Alex_Valde - 05.12.2010, 10:17
Re: [Help] Creating cars by their ID's - by fangoth1 - 05.12.2010, 10:21
Re: [Help] Creating cars by their ID's - by Alex_Valde - 05.12.2010, 10:24

Forum Jump:


Users browsing this thread: 1 Guest(s)