[Mini Help Needed] A Command Problem
#1

Код:
    if(strcmp(cmd, "/clothes", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
   				if(IsAtClothShop(playerid))
				{
				new clothesid;
				clothesid = strval(tmp);
	            tmp = strtok(cmdtext, idx);
				if(!strlen(tmp))
				{
					SendClientMessage(playerid, COLOR_WHITE,"USAGE: /clothes [Skin ID]");
					return 1;
				}
				GivePlayerMoney(playerid,-150);
				SafeGivePlayerMoney(playerid, - 150);
			    SetPlayerSkin(playerid, strval(tmp));
			    SendClientMessage(playerid, COLOR_LIGHTBLUE,"That is $150, please. ");
			    format(string, sizeof(string)," Thankyou, you have changed your skin, to skin id %d! ", clothesid);
				SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
	    	}
				else
				{
					SendClientMessage(playerid, COLOR_LIGHTBLUE, "   You are not in a Clothing Shop !");
					return 1;
				}
				return 1;
			}
		}
Why is that showing 0? When it says, "You changed your skin, to skin id 0", Why is it not showing what ID you entered in the string value?
Reply


Messages In This Thread
[Mini Help Needed] A Command Problem - by UnknownGamer - 01.08.2012, 16:08
Re : [Mini Help Needed] A Command Problem - by lelemaster - 01.08.2012, 16:40
Re: [Mini Help Needed] A Command Problem - by UnknownGamer - 01.08.2012, 17:00

Forum Jump:


Users browsing this thread: 1 Guest(s)