how would i convert this to zcmd + sscanf
#1

just wanted to know how i can change this to zcmd and sscanf

Код:

COMMAND:changepass(playerid, params[])
{
	if(IsPlayerConnected(playerid))
	{
 		if(Logged[playerid] == 0)
   		{
     		SendClientMessage(playerid, COLOR_RED, "You are not logged in !");
       		return 1;
	    }
		tmp = strtok(cmdtext, idx);
		if(!strlen(tmp))
		{
			SendClientMessage(playerid, COLOR_GRAD1, "Function: {FFFFFF}/changepass [password]");
			return 1;
		}
		strmid(PlayerInfo[playerid][pKey], tmp, 0, strlen(cmdtext), 255);
		UpdatePlayerInfo(playerid);
		SendClientMessage(playerid, COLOR_Milito, "Your password has been changed as you requested.");
	}
	return 1;
}
Reply


Messages In This Thread
how would i convert this to zcmd + sscanf - by Yves - 15.04.2014, 20:06
Re: how would i convert this to zcmd + sscanf - by iZN - 15.04.2014, 20:13
Re: how would i convert this to zcmd + sscanf - by Yves - 15.04.2014, 20:15

Forum Jump:


Users browsing this thread: 2 Guest(s)