2 Questions with this command.
#1

1. How come when i use it my server crashes (samp-server shuts off)
2. How can i make it so it only adds a clan/changes the clan tag instead of changing the whole name.
Код:
COMMAND:clantag(playerid, params[], cmdtext[])
{
new idx;
new string[256];
		new tmp[256];
		new tmpp[256];
		tmpp = strtok(cmdtext, idx);
		playerid = strval(tmpp);
		tmp = strtok(cmdtext, idx);
		if(IsPlayerConnected(playerid))
		{
					SetPlayerName(playerid, tmp);
					format(string, sizeof(string), "You changed your clantag to [%s]", tmp);
					SendClientMessage(playerid, blue, string);
				}
				return 1;

}
Reply


Messages In This Thread
2 Questions with this command. - by Marshall_Banks - 26.10.2010, 02:28
Re: 2 Questions with this command. - by Haydz - 26.10.2010, 02:36
Re: 2 Questions with this command. - by Marshall_Banks - 26.10.2010, 02:42
Re: 2 Questions with this command. - by Scenario - 26.10.2010, 02:50
Re: 2 Questions with this command. - by Marshall_Banks - 26.10.2010, 03:15
Re: 2 Questions with this command. - by Scenario - 26.10.2010, 03:17
Re: 2 Questions with this command. - by Crayon - 26.10.2010, 03:18
Re: 2 Questions with this command. - by Calgon - 26.10.2010, 04:02

Forum Jump:


Users browsing this thread: 1 Guest(s)