[HELP] /sellgun with dcmd
#2

Код:
dcmd_sellgun( playerid, params[] )
{
	new
		otherid,
		wepname[50],
		idx;
	
	if( sscanf( params, "us", otherid, wepname ) )
		//show list here
		
	else
		//show other code here

	return 1;
}
Using sscanf is what I should do. Easy and less messy.
Also string lenghts of 256 are really not necessary for player names/id's or weapon names..
Reply


Messages In This Thread
[SOLVED] /sellgun with dcmd - by Haegon - 26.11.2010, 22:12
Re: [HELP] /sellgun with dcmd - by Faraday - 26.11.2010, 22:31
Re: [HELP] /sellgun with dcmd - by Haegon - 26.11.2010, 23:30
Re: [HELP] /sellgun with dcmd - by Haegon - 27.11.2010, 00:08
Re: [HELP] /sellgun with dcmd - by Fj0rtizFredde - 27.11.2010, 00:32
Re: [HELP] /sellgun with dcmd - by Haegon - 27.11.2010, 01:36
Re: [HELP] /sellgun with dcmd - by Haegon - 28.11.2010, 21:03
Re: [HELP] /sellgun with dcmd - by Fj0rtizFredde - 28.11.2010, 22:17
Re: [HELP] /sellgun with dcmd - by Haegon - 28.11.2010, 22:36
Re: [HELP] /sellgun with dcmd - by Richard Steinheimer - 12.08.2012, 03:06

Forum Jump:


Users browsing this thread: 3 Guest(s)