Problem with a script.
#1

I have this script to set a skin for a player:
Код:
if(strcmp(cmd, "/skin", true) == 0)
	{
	if(IsAtClothShop(playerid))
    tmp = strtok(cmdtext, idx);
 	new chosenskin = strval(tmp);
 	SetPlayerSkin(playerid, chosenskin);
 	return 1;
 }
So it works like /skin 152

The problem is if the players not at a clothes shop, instead of doing nothing, it sets skin to 0, even if I type /skin 123 it sets to 0, but I just want it to do nothing, but if player is inside a clothes shop it works 100%.
Reply


Messages In This Thread
Problem with a script. - by Jack_Leslie - 04.06.2011, 13:03
Re: Problem with a script. - by Swiftz - 04.06.2011, 13:08
Re: Problem with a script. - by Jack_Leslie - 04.06.2011, 13:09
Re: Problem with a script. - by Jay. - 04.06.2011, 13:12
Re: Problem with a script. - by alpha500delta - 04.06.2011, 13:25
Re: Problem with a script. - by Jay. - 04.06.2011, 13:26

Forum Jump:


Users browsing this thread: 1 Guest(s)