impossible problem?
#1

Hello,
here's my code,
Код:
//car dealership
	if(dialogid == 2041)//receive money amount
	{
		if(!response)//if cancel, cancel
	    {
			return 1;
	    }
	    printf("%i",strval(inputtext));
	    if(strval(inputtext) < 1000 || strval(inputtext) > 10000000)
	    {
	    	//not valid number
	    	ShowPlayerDialog(playerid,2041,DIALOG_STYLE_INPUT,"Vehicle Ownership","To sell this vehicle,\nplease enter a valid amount of money(1000-10000000)","Ok","Cancel");
	    }
	    //give confirm
	    
	    
	    //format(message,sizeof(message),"Vehicle informations.\n\n\tLicense plate: %i\n\tModel: %s\n\tPrice: %i\n\nAre you sure you want to sell this vehicle?",GetPlayerVehicleID(playerid)+1000,VehiclesName[GetVehicleModel(GetPlayerVehicleID(playerid))+400],strval(inputtext));

	    //ShowPlayerDialog(playerid,2042,DIALOG_STYLE_MSGBOX,"Vehicle Dealership","teat","Yes","Back");
		ShowPlayerDialog(playerid,2042,DIALOG_STYLE_MSGBOX,"Vehicle Dealership","teat","Yes","Back");

	    return 1;

	}
so when i enter the number 1 or every other not working numbers,,, the printf tells me the good number, but the "if" doesn't do his job, he always think it's between 1000 and 10000000...

I don't understand how it is possible

thansks
Reply


Messages In This Thread
impossible problem? - by rt-2 - 01.10.2011, 22:37
Re: impossible problem? - by Dripac - 01.10.2011, 22:41
Re: impossible problem? - by rt-2 - 01.10.2011, 22:47
Re: impossible problem? - by Vince - 01.10.2011, 23:00
Re: impossible problem? - by rt-2 - 01.10.2011, 23:21
AW: Re: impossible problem? - by Nero_3D - 02.10.2011, 00:23
Re: impossible problem? - by rt-2 - 11.10.2011, 06:18

Forum Jump:


Users browsing this thread: 3 Guest(s)