02.04.2010, 13:47
i maded simple command
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?
Код:
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; }
it's change me the skin...
where is the problem in the script?