25.10.2010, 19:59 
	
	
	
		Hello guys, I just came back to samp and started scripting again  Although i was making a command but it didnt seem to work..
 Although i was making a command but it didnt seem to work..
mmhmm, anyone know whats wrong with the code? What im simply saying here is that when i set my msg and then kill my self (IG) it only shows the first letter of the msg when it should show the whole msg...
I knew how to do this before but now i forgot, hmm
-Lorenc
	
	
	
 Although i was making a command but it didnt seem to work..
 Although i was making a command but it didnt seem to work..Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	dcmd(msg, 3, cmdtext);
	return 0;
}
dcmd_msg(playerid, params[])
{
	new
		input[21],
		string[60];
	if (sscanf(params, "s", input)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /msg [msg]");
	else
	{
		Msg[playerid] = input[0];
		Created[playerid] = 1;
	}
	return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
	new string[60];
	if(Created[playerid] == 1)
	{
		format(string,sizeof(string), "%s", Msg[playerid]);
		GameTextForPlayer(playerid, string, 5000, 6);
	}
	return 1;
}
I knew how to do this before but now i forgot, hmm
-Lorenc





 )
)
	
