Numbers in dialog.
#3

If i use playerid, i can error. I try to use inputtext:
Код:
new nmbr[6];
			if(sscanf(inputtext, "dddddd", nmbr[0], nmbr[1], nmbr[2], nmbr[3], nmbr[4], nmbr[5]))
			{
                SendClientMessage( playerid, COLOR_RED,"* Invalid format.");
			 	return 1;
			}
			if( nmbr[0] > 48 || nmbr[1] > 48 || nmbr[2] > 48 || nmbr[3] > 48 || nmbr[4] > 48 || nmbr[5] > 48 )
			{
			    SendClientMessage( playerid, COLOR_RED,"* Too high number in your combination");
			 	return 1;
			}
Problem is, when i write in dialog that numbers like 1 2 3 4 5 6 i always get "too high number in your combination".
Reply


Messages In This Thread
Numbers in dialog. - by audriuxxx - 21.06.2013, 09:24
Re: Numbers in dialog. - by RedFusion - 21.06.2013, 09:42
Re: Numbers in dialog. - by audriuxxx - 21.06.2013, 17:47
Re: Numbers in dialog. - by audriuxxx - 21.06.2013, 18:55

Forum Jump:


Users browsing this thread: 1 Guest(s)