Inputtext
#4

Код:
new TargetID,Amount,string[128];
if(!sscanf(inputtext,"uD(500)",TargetID,Amount))
{
	format(sting,sizeof(string),"TID:%d Amount:%d",TargetID,Amount);
}
else
{
	format(sting,sizeof(string),"TID:%d Amount:%d (=default)",TargetID,Amount);
}
SendClientMessageToAll(0xffffffff,string);
...using sscanf2 indeed
Reply


Messages In This Thread
Inputtext - by Wesley221 - 19.06.2011, 12:55
Re: Inputtext - by sleepysnowflake - 19.06.2011, 13:01
Re: Inputtext - by Wesley221 - 19.06.2011, 14:00
Re: Inputtext - by Babul - 19.06.2011, 14:16
Re: Inputtext - by Wesley221 - 19.06.2011, 14:28
Re: Inputtext - by Vince - 19.06.2011, 14:51
Re: Inputtext - by Wesley221 - 19.06.2011, 14:55
Re: Inputtext - by Wesley221 - 19.06.2011, 15:09
Re: Inputtext - by Mr4rtur - 19.06.2011, 15:13

Forum Jump:


Users browsing this thread: 2 Guest(s)