Numbers in dialog.
#2

The player is the only one who can insert text into the textbox of a dialog, so you'll have to insert the spaces yourself
EDIT: i think i misunderstood it!

sscanf is a good alternative for this!

pawn Код:
new nmbr[7];
if(sscanf(playerid, "iiiiiii", nmbr[0], nmbr[1], nmbr[2], nmbr[3], nmbr[4], nmbr[5], nmbr[6]))
{
 //Error, insert numbers!
 return 1;
}

// nmbr[0] > nmbr[6] are now equal to what you've written
return 1;
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)