Add custom skin to IsInvalidSkin
#1

hello since i have added 3 skins I had to make this function like this:

PHP код:
stock IsInvalidSkin(skin) {
    if(!(
<= skin <= 30000)) return 1;
    return 
0;

how can I add here that only add the skin IDs I have added there ?

PHP код:
stock IsInvalidSkin(skin) {
    if(!(
<= skin <= 311)) return 1;
    return 
0;

Reply
#2

Quote:
Originally Posted by SacrificeGaming
Посмотреть сообщение
hello since i have added 3 skins I had to make this function like this:

PHP код:
stock IsInvalidSkin(skin) {
    if(!(
<= skin <= 30000)) return 1;
    return 
0;

how can I add here that only add the skin IDs I have added there ?

PHP код:
stock IsInvalidSkin(skin) {
    if(!(
<= skin <= 311)) return 1;
    return 
0;

Код:
stock IsInvalidSkin(skin) {
	if((-1 <= skin <= 312)) return true;
    return false;
}
Reply
#3

Quote:
Originally Posted by ForCop
Посмотреть сообщение
Код:
stock IsInvalidSkin(skin) {
	if((-1 <= skin <= 312)) return true;
    return false;
}
312 doesn't make sence ?

skinID starts at 20001, 20002, 20003
Reply
#4

Quote:
Originally Posted by SacrificeGaming
Посмотреть сообщение
312 doesn't make sence ?

skinID starts at 20001, 20002, 20003
Код:
stock IsValidCustomSkin(skinid){
	switch(skinid){
	case 0..73,75..311,2000..30000: return true;
		return false;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)