Problem with a command
#1

i maded simple command

Код:
forward IsUnValidSkin(skinid);
Код:
public IsUnValidSkin(skinid)
{
if(skinid == 3 || skinid == 4 || skinid == 5 || skinid == 6 || skinid == 8 || skinid == 10 || skinid == 42 || skinid == 65 || skinid == 74 || skinid == 86 || skinid == 92 || skinid == 99 || skinid == 119 || skinid == 149 || skinid == 178 || skinid == 208 || skinid == 264 || skinid == 273 || skinid == 284|| skinid == 285|| skinid == 289)
  {
	return 1;
  }
return 0;
}
Код:
	new id = strval(tmp);
	if(IsUnValidSkin(id))
	{
	SendClientMessage(playerid, COLOR_GRAD2,"You cannot buy this clothes");
	return 1;
	}
but when im using the command and write one id from isvaildskin it's not going to the if

it's change me the skin...

where is the problem in the script?
Reply


Messages In This Thread
Problem with a command - by Ben147 - 02.04.2010, 13:47
Re: Problem with a command - by aircombat - 02.04.2010, 13:48
Re: Problem with a command - by Ben147 - 02.04.2010, 13:51
Re: Problem with a command - by aircombat - 02.04.2010, 13:53
Re: Problem with a command - by Ben147 - 02.04.2010, 13:54
Re: Problem with a command - by Jakku - 02.04.2010, 13:55
Re: Problem with a command - by Ben147 - 02.04.2010, 13:56
Re: Problem with a command - by Ben147 - 02.04.2010, 14:00

Forum Jump:


Users browsing this thread: 1 Guest(s)