Edit the command(rep++)
#1

This command not save a password.

Код:
if(strcmp(cmd, "/changepass", true) == 0)
{
	if(IsPlayerConnected(playerid))
	{
		if(IsPlayerLogged[playerid] == 0)
		{
			SendClientMessage(playerid, COLOR_RED, "You aren't logged!");
			return 1;
		}
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_WHITE, "Usage: /changepass [new password]");
			return 1;
		}
		strmid(PlayerInfo[playerid][pPwd], tmp, 0, strlen(cmdtext), 255);
		format(string, sizeof(string), "You successful changed your password %s.", tmp);
		SendClientMessage(playerid, COLOR_YELLOW, string);
	}
	return 1;
}
Reply


Messages In This Thread
Edit the command(rep++) - by Join7 - 27.03.2012, 21:28
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 21:33
Re: Edit the command(rep++) - by Join7 - 27.03.2012, 21:40
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 21:45
Re: Edit the command(rep++) - by Join7 - 27.03.2012, 21:46
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 21:59
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 22:09
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 22:14
Re: Edit the command(rep++) - by Join7 - 27.03.2012, 22:21
Respuesta: Edit the command(rep++) - by Chris1337 - 27.03.2012, 22:26

Forum Jump:


Users browsing this thread: 1 Guest(s)