[Error]GetSkinName returns wrong name

Started by KAKAN, Feb 14, 2016, 05:27 PM

Previous topic - Next topic

KAKAN

Well, the topic says all.
The GetSkinName function returns wrong name after a specific ID which I don't know.
For example:-
Cam is skin 125, but according to GetSkinName, it's 126.

Can someone tell me from which ID this bug occurs?
oh no

Luis_Labarca


there is an id since there for alante you get the same error

KAKAN

Quote from: Luis_Labarca on Feb 14, 2016, 08:34 PMthere is an id since there for alante you get the same error
This error happens somewhere between 50-64
oh no

KAKAN

oh no

Thijn

Why don't you find out what ID this bug occurs and maybe it gets fixed.

KAKAN

Quote from: Thijn on Mar 04, 2016, 08:02 PMWhy don't you find out what ID this bug occurs and maybe it gets fixed.
I tried to. I said that it's between 50-61, can't get more info, I don't know all the skin names
oh no

MacTavish

also ID 114 show Lance instead of Sonny

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

Thijn

Quote from: KAKAN on Mar 04, 2016, 08:03 PM
Quote from: Thijn on Mar 04, 2016, 08:02 PMWhy don't you find out what ID this bug occurs and maybe it gets fixed.
I tried to. I said that it's between 50-61, can't get more info, I don't know all the skin names
case 0:   return "Tommy Vercetti";
case 1:   return "Cop";
case 2:   return "SWAT";
case 3:   return "FBI";
case 4:   return "Army";
case 5:   return "Paramedic";
case 6:   return "Firefighter";
case 7:   return "Golf Guy #1";
case 8:   return NULL;
case 9:   return "Bum Lady #1";
case 10:  return "Bum Lady #2";
case 11:  return "Punk #1";
case 12:  return "Lawyer";
case 13:  return "Spanish Lady #1";
case 14:  return "Spanish Lady #2";
case 15:  return "Cool Guy #1";
case 16:  return "Arabic Guy";
case 17:  return "Beach Lady #1";
case 18:  return "Beach Lady #2";
case 19:  return "Beach Guy #1";
case 20:  return "Beach Guy #2";
case 21:  return "Office Lady #1";
case 22:  return "Waitress #1";
case 23:  return "Food Lady";
case 24:  return "Prostitute #1";
case 25:  return "Bum Lady #3";
case 26:  return "Bum Guy #1";
case 27:  return "Garbageman #1";
case 28:  return "Taxi Driver #1";
case 29:  return "Haitian #1";
case 30:  return "Criminal #1";
case 31:  return "Hood Lady";
case 32:  return "Granny #1";
case 33:  return "Businessman #1";
case 34:  return "Church Guy";
case 35:  return "Club Lady";
case 36:  return "Church Lady";
case 37:  return "Pimp";
case 38:  return "Beach Lady #3";
case 39:  return "Beach Guy #3";
case 40:  return "Beach Lady #4";
case 41:  return "Beach Guy #4";
case 42:  return "Businessman #2";
case 43:  return "Prostitute #2";
case 44:  return "Bum Lady #4";
case 45:  return "Bum Guy #2";
case 46:  return "Haitian #2";
case 47:  return "Construction Worker #1";
case 48:  return "Punk #2";
case 49:  return "Prostitute #3";
case 50:  return "Granny #2";
case 51:  return "Punk #3";
case 52:  return "Businessman #3";
case 53:  return "Spanish Lady #3";
case 54:  return "Spanish Lady #4";
case 55:  return "Cool Guy #2";
case 56:  return "Businessman #4";
case 57:  return "Beach Lady #5";
case 58:  return "Beach Guy #5";
case 59:  return "Beach Lady #6";
case 60:  return "Beach Guy #6";
case 61:  return "Construction Worker #2";
case 62:  return "Golf Guy #2";
case 63:  return "Golf Lady";
case 64:  return "Golf Guy #3";
case 65:  return "Beach Lady #7";
case 66:  return "Beach Guy #7";
case 67:  return "Office Lady #2";
case 68:  return "Businessman #5";
case 69:  return "Businessman #6";
case 70:  return "Prostitute #2";
case 71:  return "Bum Lady #4";
case 72:  return "Bum Guy #3";
case 73:  return "Spanish Guy";
case 74:  return "Taxi Driver #2";
case 75:  return "Gym Lady";
case 76:  return "Gym Guy";
case 77:  return "Skate Lady";
case 78:  return "Skate Guy";
case 79:  return "Shopper #1";
case 80:  return "Shopper #2";
case 81:  return "Tourist #1";
case 82:  return "Tourist #2";
case 83:  return "Cuban #1";
case 84:  return "Cuban #2";
case 85:  return "Haitian #3";
case 86:  return "Haitian #4";
case 87:  return "Shark #1";
case 88:  return "Shark #2";
case 89:  return "Diaz Guy #1";
case 90:  return "Diaz Guy #2";
case 91:  return "DBP Security #1";
case 92:  return "DBP Security #2";
case 93:  return "Biker #1";
case 94:  return "Biker #2";
case 95:  return "Vercetti Guy #1";
case 96:  return "Vercetti Guy #2";
case 97:  return "Undercover Cop #1";
case 98:  return "Undercover Cop #2";
case 99:  return "Undercover Cop #3";
case 100: return "Undercover Cop #4";
case 101: return "Undercover Cop #5";
case 102: return "Undercover Cop #6";
case 103: return "Rich Guy";
case 104: return "Cool Guy #3";
case 105: return "Prostitute #3";
case 106: return "Prostitute #4";
case 107: return "Love Fist #1";
case 108: return "Ken Rosenburg";
case 109: return "Candy Suxx";
case 110: return "Hilary";
case 111: return "Love Fist #2";
case 112: return "Phil";
case 113: return "Rockstar Guy";
case 114: return "Sonny";
case 115: return "Lance";
case 116: return "Mercedes";
case 117: return "Love Fist #3";
case 118: return "Alex Shrub";
case 119: return "Lance (Cop)";
case 120: return "Lance";
case 121: return "Cortez";
case 122: return "Love Fist #4";
case 123: return "Columbian Guy #1";
case 124: return "Hilary (Robber)";
case 125: return "Mercedes";
case 126: return "Cam";
case 127: return "Cam (Robber)";
case 128: return "Phil (One Arm)";
case 129: return "Phil (Robber)";
case 130: return "Cool Guy #4";
case 131: return "Pizza Man";
case 132: return "Taxi Driver #1";
case 133: return "Taxi Driver #2";
case 134: return "Sailor #1";
case 135: return "Sailor #2";
case 136: return "Sailor #3";
case 137: return "Chef";
case 138: return "Criminal #2";
case 139: return "French Guy";
case 140: return "Garbageman #2";
case 141: return "Haitian #5";
case 142: return "Waitress #2";
case 143: return "Sonny Guy #1";
case 144: return "Sonny Guy #2";
case 145: return "Sonny Guy #3";
case 146: return "Columbian Guy #2";
case 147: return "Haitian #6";
case 148: return "Beach Guy #8";
case 149: return "Garbageman #3";
case 150: return "Garbageman #4";
case 151: return "Garbageman #5";
case 152: return "Tranny";
case 153: return "Thug #5";
case 154: return "SpandEx Guy #1";
case 155: return "SpandEx Guy #2";
case 156: return "Stripper #1";
case 157: return "Stripper #2";
case 158: return "Stripper #3";
case 159: return "Store Clerk";
case 160: return NULL;
case 161: return "Tommy with Suit";
case 162: return "Worker Tommy";
case 163: return "Golfer Tommy";
case 164: return "Cuban Tommy";
case 165: return "VCPD Tommy";
case 166: return "Bank Robber Tommy";
case 167: return "Street Tommy";
case 168: return "Mafia Tommy";
case 169: return "Jogger Tommy #1";
case 170: return "Jogger Tommy #2";
case 171: return "Guy With Suit #1";
case 172: return "Guy With Suit #3";
case 173: return "Prostitute #5";
case 174: return "Rico";
case 175: return "Prostitute #3";
case 176: return "Club Lady";
case 177: return "Prostitute #2";
case 178: return "Skull T-Shirt Guy";
case 179: return "Easter Egg Tommy";
case 180: return "Diaz Gangster #1";
case 181: return "Diaz Gangster #2";
case 182: return "Hood Lady";
case 183: return "Punk #1";
case 184: return "Tray Lady";
case 185: return "Kent Paul";
case 186: return "Taxi Driver #1";
case 187: return "Deformed Ken Rosenberg";
case 188: return "Deformed Woman";
case 189: return "Deformed Man";
case 190: return "Deformed Cortez";
case 191: return "Deformed Lance Vance";
case 192: return "Thief #1";
case 193: return "Thief #2";
case 194: return "Thief #3";

KAKAN

Quote from: Kusanagi on Mar 04, 2016, 08:12 PMalso ID 114 show Lance instead of Sonny
Try 115 instead :D

Quote from: Thijn on Mar 04, 2016, 08:25 PM
Quote from: KAKAN on Mar 04, 2016, 08:03 PM
Quote from: Thijn on Mar 04, 2016, 08:02 PMWhy don't you find out what ID this bug occurs and maybe it gets fixed.
I tried to. I said that it's between 50-61, can't get more info, I don't know all the skin names
case 0:   return "Tommy Vercetti";
case 1:   return "Cop";
case 2:   return "SWAT";
case 3:   return "FBI";
case 4:   return "Army";
case 5:   return "Paramedic";
case 6:   return "Firefighter";
case 7:   return "Golf Guy #1";
case 8:   return NULL;
case 9:   return "Bum Lady #1";
case 10:  return "Bum Lady #2";
case 11:  return "Punk #1";
case 12:  return "Lawyer";
case 13:  return "Spanish Lady #1";
case 14:  return "Spanish Lady #2";
case 15:  return "Cool Guy #1";
case 16:  return "Arabic Guy";
case 17:  return "Beach Lady #1";
case 18:  return "Beach Lady #2";
case 19:  return "Beach Guy #1";
case 20:  return "Beach Guy #2";
case 21:  return "Office Lady #1";
case 22:  return "Waitress #1";
case 23:  return "Food Lady";
case 24:  return "Prostitute #1";
case 25:  return "Bum Lady #3";
case 26:  return "Bum Guy #1";
case 27:  return "Garbageman #1";
case 28:  return "Taxi Driver #1";
case 29:  return "Haitian #1";
case 30:  return "Criminal #1";
case 31:  return "Hood Lady";
case 32:  return "Granny #1";
case 33:  return "Businessman #1";
case 34:  return "Church Guy";
case 35:  return "Club Lady";
case 36:  return "Church Lady";
case 37:  return "Pimp";
case 38:  return "Beach Lady #3";
case 39:  return "Beach Guy #3";
case 40:  return "Beach Lady #4";
case 41:  return "Beach Guy #4";
case 42:  return "Businessman #2";
case 43:  return "Prostitute #2";
case 44:  return "Bum Lady #4";
case 45:  return "Bum Guy #2";
case 46:  return "Haitian #2";
case 47:  return "Construction Worker #1";
case 48:  return "Punk #2";
case 49:  return "Prostitute #3";
case 50:  return "Granny #2";
case 51:  return "Punk #3";
case 52:  return "Businessman #3";
case 53:  return "Spanish Lady #3";
case 54:  return "Spanish Lady #4";
case 55:  return "Cool Guy #2";
case 56:  return "Businessman #4";
case 57:  return "Beach Lady #5";
case 58:  return "Beach Guy #5";
case 59:  return "Beach Lady #6";
case 60:  return "Beach Guy #6";
case 61:  return "Construction Worker #2";
case 62:  return "Golf Guy #2";
case 63:  return "Golf Lady";
case 64:  return "Golf Guy #3";
case 65:  return "Beach Lady #7";
case 66:  return "Beach Guy #7";
case 67:  return "Office Lady #2";
case 68:  return "Businessman #5";
case 69:  return "Businessman #6";
case 70:  return "Prostitute #2";
case 71:  return "Bum Lady #4";
case 72:  return "Bum Guy #3";
case 73:  return "Spanish Guy";
case 74:  return "Taxi Driver #2";
case 75:  return "Gym Lady";
case 76:  return "Gym Guy";
case 77:  return "Skate Lady";
case 78:  return "Skate Guy";
case 79:  return "Shopper #1";
case 80:  return "Shopper #2";
case 81:  return "Tourist #1";
case 82:  return "Tourist #2";
case 83:  return "Cuban #1";
case 84:  return "Cuban #2";
case 85:  return "Haitian #3";
case 86:  return "Haitian #4";
case 87:  return "Shark #1";
case 88:  return "Shark #2";
case 89:  return "Diaz Guy #1";
case 90:  return "Diaz Guy #2";
case 91:  return "DBP Security #1";
case 92:  return "DBP Security #2";
case 93:  return "Biker #1";
case 94:  return "Biker #2";
case 95:  return "Vercetti Guy #1";
case 96:  return "Vercetti Guy #2";
case 97:  return "Undercover Cop #1";
case 98:  return "Undercover Cop #2";
case 99:  return "Undercover Cop #3";
case 100: return "Undercover Cop #4";
case 101: return "Undercover Cop #5";
case 102: return "Undercover Cop #6";
case 103: return "Rich Guy";
case 104: return "Cool Guy #3";
case 105: return "Prostitute #3";
case 106: return "Prostitute #4";
case 107: return "Love Fist #1";
case 108: return "Ken Rosenburg";
case 109: return "Candy Suxx";
case 110: return "Hilary";
case 111: return "Love Fist #2";
case 112: return "Phil";
case 113: return "Rockstar Guy";
case 114: return "Sonny";
case 115: return "Lance";
case 116: return "Mercedes";
case 117: return "Love Fist #3";
case 118: return "Alex Shrub";
case 119: return "Lance (Cop)";
case 120: return "Lance";
case 121: return "Cortez";
case 122: return "Love Fist #4";
case 123: return "Columbian Guy #1";
case 124: return "Hilary (Robber)";
case 125: return "Mercedes";
case 126: return "Cam";
case 127: return "Cam (Robber)";
case 128: return "Phil (One Arm)";
case 129: return "Phil (Robber)";
case 130: return "Cool Guy #4";
case 131: return "Pizza Man";
case 132: return "Taxi Driver #1";
case 133: return "Taxi Driver #2";
case 134: return "Sailor #1";
case 135: return "Sailor #2";
case 136: return "Sailor #3";
case 137: return "Chef";
case 138: return "Criminal #2";
case 139: return "French Guy";
case 140: return "Garbageman #2";
case 141: return "Haitian #5";
case 142: return "Waitress #2";
case 143: return "Sonny Guy #1";
case 144: return "Sonny Guy #2";
case 145: return "Sonny Guy #3";
case 146: return "Columbian Guy #2";
case 147: return "Haitian #6";
case 148: return "Beach Guy #8";
case 149: return "Garbageman #3";
case 150: return "Garbageman #4";
case 151: return "Garbageman #5";
case 152: return "Tranny";
case 153: return "Thug #5";
case 154: return "SpandEx Guy #1";
case 155: return "SpandEx Guy #2";
case 156: return "Stripper #1";
case 157: return "Stripper #2";
case 158: return "Stripper #3";
case 159: return "Store Clerk";
case 160: return NULL;
case 161: return "Tommy with Suit";
case 162: return "Worker Tommy";
case 163: return "Golfer Tommy";
case 164: return "Cuban Tommy";
case 165: return "VCPD Tommy";
case 166: return "Bank Robber Tommy";
case 167: return "Street Tommy";
case 168: return "Mafia Tommy";
case 169: return "Jogger Tommy #1";
case 170: return "Jogger Tommy #2";
case 171: return "Guy With Suit #1";
case 172: return "Guy With Suit #3";
case 173: return "Prostitute #5";
case 174: return "Rico";
case 175: return "Prostitute #3";
case 176: return "Club Lady";
case 177: return "Prostitute #2";
case 178: return "Skull T-Shirt Guy";
case 179: return "Easter Egg Tommy";
case 180: return "Diaz Gangster #1";
case 181: return "Diaz Gangster #2";
case 182: return "Hood Lady";
case 183: return "Punk #1";
case 184: return "Tray Lady";
case 185: return "Kent Paul";
case 186: return "Taxi Driver #1";
case 187: return "Deformed Ken Rosenberg";
case 188: return "Deformed Woman";
case 189: return "Deformed Man";
case 190: return "Deformed Cortez";
case 191: return "Deformed Lance Vance";
case 192: return "Thief #1";
case 193: return "Thief #2";
case 194: return "Thief #3";
Is that  a fixed one or you're just telling me the names? I would try it today again( if I get time )
oh no

Diego^

I created a function to correct the names, I do not know if it works perfectly.

function SkinName( skin )
{
if ( skin == 107 ) return "Ricardo Diaz";
else if ( skin == 123 ) return "SWAT #2";
else if ( skin > 106 ) return GetSkinName( skin - 1 );
else return GetSkinName( skin );
}

BRL's Developer.

ysc3839

Quote from: Diego^ on Mar 05, 2016, 04:26 PMI created a function to correct the names, I do not know if it works perfectly.

function SkinName( skin )
{
if ( skin == 107 ) return "Ricardo Diaz";
else if ( skin == 123 ) return "SWAT #2";
else if ( skin > 106 ) return GetSkinName( skin - 1 );
else return GetSkinName( skin );
}
You can edit squirrel plugin code to fix it.

KAKAN

Quote from: ysc3839 on Mar 05, 2016, 05:35 PM
Quote from: Diego^ on Mar 05, 2016, 04:26 PMI created a function to correct the names, I do not know if it works perfectly.

function SkinName( skin )
{
if ( skin == 107 ) return "Ricardo Diaz";
else if ( skin == 123 ) return "SWAT #2";
else if ( skin > 106 ) return GetSkinName( skin - 1 );
else return GetSkinName( skin );
}
You can edit squirrel plugin code to fix it.
Then too, I fill find this more useful because it would be easy to implement :D
And also, Diego, I saw that the bug is happening somewhere between 50-64, I don't get that
oh no

MacTavish

#12
hey guys its not the fault in GetSkinName functions its the skin are replaced i mean. ID 115 is Lance but skin is sonny i tried that switch function that @Thijn posted in that function ID 115 is lance but still my skin is sonny.

* Kusanagi ask @Stormeus where is problem then *


Edit: i got the problem there are two separate lists of Skin IDs

http://murdock.in/wiki/index.php/Skin_IDs

http://wiki.vc-mp.org/wiki/Skins

in @Murdock's Skin list ID 115 is Sonny but in our List is Lance

Edit 2: i got the bug actually it is our GetSkinName function :P the bug is there some skins are missing Diaz skin ID is not included whoever made the list actually skipped that skin. BTW i am fixing the list and ill post it here

Edit 3: now all skin IDs are fixed now i guess

case 0:   return "Tommy Vercetti";
 case 1:   return "Cop";
 case 2:   return "SWAT";
 case 3:   return "FBI";
 case 4:   return "Army";
 case 5:   return "Paramedic";
 case 6:   return "Firefighter";
 case 7:   return "Golf Guy #1";
 case 8:   return NULL;
 case 9:   return "Bum Lady #1";
 case 10:  return "Bum Lady #2";
 case 11:  return "Punk #1";
 case 12:  return "Lawyer";
 case 13:  return "Spanish Lady #1";
 case 14:  return "Spanish Lady #2";
 case 15:  return "Cool Guy #1";
 case 16:  return "Arabic Guy";
 case 17:  return "Beach Lady #1";
 case 18:  return "Beach Lady #2";
 case 19:  return "Beach Guy #1";
 case 20:  return "Beach Guy #2";
 case 21:  return "Office Lady #1";
 case 22:  return "Waitress #1";
 case 23:  return "Food Lady";
 case 24:  return "Prostitute #1";
 case 25:  return "Bum Lady #3";
 case 26:  return "Bum Guy #1";
 case 27:  return "Garbageman #1";
 case 28:  return "Taxi Driver #1";
 case 29:  return "Haitian #1";
 case 30:  return "Criminal #1";
 case 31:  return "Hood Lady";
 case 32:  return "Granny #1";
 case 33:  return "Businessman #1";
 case 34:  return "Church Guy";
 case 35:  return "Club Lady";
 case 36:  return "Church Lady";
 case 37:  return "Pimp";
 case 38:  return "Beach Lady #3";
 case 39:  return "Beach Guy #3";
 case 40:  return "Beach Lady #4";
 case 41:  return "Beach Guy #4";
 case 42:  return "Businessman #2";
 case 43:  return "Prostitute #2";
 case 44:  return "Bum Lady #4";
 case 45:  return "Bum Guy #2";
 case 46:  return "Haitian #2";
 case 47:  return "Construction Worker #1";
 case 48:  return "Punk #2";
 case 49:  return "Prostitute #3";
 case 50:  return "Granny #2";
 case 51:  return "Punk #3";
 case 52:  return "Businessman #3";
 case 53:  return "Spanish Lady #3";
 case 54:  return "Spanish Lady #4";
 case 55:  return "Cool Guy #2";
 case 56:  return "Businessman #4";
 case 57:  return "Beach Lady #5";
 case 58:  return "Beach Guy #5";
 case 59:  return "Beach Lady #6";
 case 60:  return "Beach Guy #6";
 case 61:  return "Construction Worker #2";
 case 62:  return "Golf Guy #2";
 case 63:  return "Golf Lady";
 case 64:  return "Golf Guy #3";
 case 65:  return "Beach Lady #7";
 case 66:  return "Beach Guy #7";
 case 67:  return "Office Lady #2";
 case 68:  return "Businessman #5";
 case 69:  return "Businessman #6";
 case 70:  return "Prostitute #2";
 case 71:  return "Bum Lady #4";
 case 72:  return "Bum Guy #3";
 case 73:  return "Spanish Guy";
 case 74:  return "Taxi Driver #2";
 case 75:  return "Gym Lady";
 case 76:  return "Gym Guy";
 case 77:  return "Skate Lady";
 case 78:  return "Skate Guy";
 case 79:  return "Shopper #1";
 case 80:  return "Shopper #2";
 case 81:  return "Tourist #1";
 case 82:  return "Tourist #2";
 case 83:  return "Cuban #1";
 case 84:  return "Cuban #2";
 case 85:  return "Haitian #3";
 case 86:  return "Haitian #4";
 case 87:  return "Shark #1";
 case 88:  return "Shark #2";
 case 89:  return "Diaz Guy #1";
 case 90:  return "Diaz Guy #2";
 case 91:  return "DBP Security #1";
 case 92:  return "DBP Security #2";
 case 93:  return "Biker #1";
 case 94:  return "Biker #2";
 case 95:  return "Vercetti Guy #1";
 case 96:  return "Vercetti Guy #2";
 case 97:  return "Undercover Cop #1";
 case 98:  return "Undercover Cop #2";
 case 99:  return "Undercover Cop #3";
 case 100: return "Undercover Cop #4";
 case 101: return "Undercover Cop #5";
 case 102: return "Undercover Cop #6";
 case 103: return "Rich Guy";
 case 104: return "Cool Guy #3";
 case 105: return "Prostitute #3";
 case 106: return "Prostitute #4";
 case 107: return "Diaz";
 case 108: return "Love Fist #1";
 case 109: return "Ken Rosenburg";
 case 110: return "Candy Suxx";
 case 111: return "Hilary";
 case 112: return "Love Fist #2";
 case 113: return "Phil";
 case 114: return "Rockstar Guy";
 case 115: return "Sonny";
 case 116: return "Lance";
 case 117: return "Mercedes";
 case 118: return "Love Fist #3";
 case 119: return "Alex Shrub";
 case 120: return "Lance (Cop)";
 case 121: return "Lance";
 case 122: return "Cortez";
 case 123: return "Love Fist #4";
 case 124: return "Columbian Guy #1";
 case 125: return "Hilary (Robber)";
 case 126: return "Mercedes";
 case 127: return "Cam";
 case 128: return "Cam (Robber)";
 case 129: return "Phil (One Arm)";
 case 130: return "Phil (Robber)";
 case 131: return "Cool Guy #4";
 case 132: return "Pizza Man";
 case 133: return "Taxi Driver #1";
 case 134: return "Taxi Driver #2";
 case 135: return "Sailor #1";
 case 136: return "Sailor #2";
 case 137: return "Sailor #3";
 case 138: return "Chef";
 case 139: return "Criminal #2";
 case 140: return "French Guy";
 case 141: return "Garbageman #2";
 case 142: return "Haitian #5";
 case 143: return "Waitress #2";
 case 144: return "Sonny Guy #1";
 case 145: return "Sonny Guy #2";
 case 146: return "Sonny Guy #3";
 case 147: return "Columbian Guy #2";
 case 148: return "Haitian #6";
 case 149: return "Beach Guy #8";
 case 150: return "Garbageman #3";
 case 151: return "Garbageman #4";
 case 152: return "Garbageman #5";
 case 153: return "Tranny";
 case 154: return "Thug #5";
 case 155: return "SpandEx Guy #1";
 case 156: return "SpandEx Guy #2";
 case 157: return "Stripper #1";
 case 158: return "Stripper #2";
 case 159: return "Stripper #3";
 case 160: return "Store Clerk";
 case 161: return NULL;
 case 162: return "Tommy with Suit";
 case 163: return "Worker Tommy";
 case 164: return "Golfer Tommy";
 case 165: return "Cuban Tommy";
 case 166: return "VCPD Tommy";
 case 167: return "Bank Robber Tommy";
 case 168: return "Street Tommy";
 case 169: return "Mafia Tommy";
 case 170: return "Jogger Tommy #1";
 case 171: return "Jogger Tommy #2";
 case 172: return "Guy With Suit #1";
 case 173: return "Guy With Suit #3";
 case 174: return "Prostitute #5";
 case 175: return "Rico";
 case 176: return "Prostitute #3";
 case 177: return "Club Lady";
 case 178: return "Prostitute #2";
 case 179: return "Skull T-Shirt Guy";
 case 180: return "Easter Egg Tommy";
 case 181: return "Diaz Gangster #1";
 case 182: return "Diaz Gangster #2";
 case 183: return "Hood Lady";
 case 184: return "Punk #1";
 case 185: return "Tray Lady";
 case 186: return "Kent Paul";
 case 187: return "Taxi Driver #1";
 case 188: return "Deformed Ken Rosenberg";
 case 189: return "Deformed Woman";
 case 190: return "Deformed Man";
 case 191: return "Deformed Cortez";
 case 192: return "Deformed Lance Vance";
 case 193: return "Thief #1";
 case 194: return "Thief #2";
 case 195: return "Thief #3";

Here is the full list including Custom Skin Names

function GetCSkinName(id)
{
switch(id)
{
case 0:   return "Tommy Vercetti";
 case 1:   return "Cop";
 case 2:   return "SWAT";
 case 3:   return "FBI";
 case 4:   return "Army";
 case 5:   return "Paramedic";
 case 6:   return "Firefighter";
 case 7:   return "Golf Guy #1";
 case 8:   return NULL;
 case 9:   return "Bum Lady #1";
 case 10:  return "Bum Lady #2";
 case 11:  return "Punk #1";
 case 12:  return "Lawyer";
 case 13:  return "Spanish Lady #1";
 case 14:  return "Spanish Lady #2";
 case 15:  return "Cool Guy #1";
 case 16:  return "Arabic Guy";
 case 17:  return "Beach Lady #1";
 case 18:  return "Beach Lady #2";
 case 19:  return "Beach Guy #1";
 case 20:  return "Beach Guy #2";
 case 21:  return "Office Lady #1";
 case 22:  return "Waitress #1";
 case 23:  return "Food Lady";
 case 24:  return "Prostitute #1";
 case 25:  return "Bum Lady #3";
 case 26:  return "Bum Guy #1";
 case 27:  return "Garbageman #1";
 case 28:  return "Taxi Driver #1";
 case 29:  return "Haitian #1";
 case 30:  return "Criminal #1";
 case 31:  return "Hood Lady";
 case 32:  return "Granny #1";
 case 33:  return "Businessman #1";
 case 34:  return "Church Guy";
 case 35:  return "Club Lady";
 case 36:  return "Church Lady";
 case 37:  return "Pimp";
 case 38:  return "Beach Lady #3";
 case 39:  return "Beach Guy #3";
 case 40:  return "Beach Lady #4";
 case 41:  return "Beach Guy #4";
 case 42:  return "Businessman #2";
 case 43:  return "Prostitute #2";
 case 44:  return "Bum Lady #4";
 case 45:  return "Bum Guy #2";
 case 46:  return "Haitian #2";
 case 47:  return "Construction Worker #1";
 case 48:  return "Punk #2";
 case 49:  return "Prostitute #3";
 case 50:  return "Granny #2";
 case 51:  return "Punk #3";
 case 52:  return "Businessman #3";
 case 53:  return "Spanish Lady #3";
 case 54:  return "Spanish Lady #4";
 case 55:  return "Cool Guy #2";
 case 56:  return "Businessman #4";
 case 57:  return "Beach Lady #5";
 case 58:  return "Beach Guy #5";
 case 59:  return "Beach Lady #6";
 case 60:  return "Beach Guy #6";
 case 61:  return "Construction Worker #2";
 case 62:  return "Golf Guy #2";
 case 63:  return "Golf Lady";
 case 64:  return "Golf Guy #3";
 case 65:  return "Beach Lady #7";
 case 66:  return "Beach Guy #7";
 case 67:  return "Office Lady #2";
 case 68:  return "Businessman #5";
 case 69:  return "Businessman #6";
 case 70:  return "Prostitute #2";
 case 71:  return "Bum Lady #4";
 case 72:  return "Bum Guy #3";
 case 73:  return "Spanish Guy";
 case 74:  return "Taxi Driver #2";
 case 75:  return "Gym Lady";
 case 76:  return "Gym Guy";
 case 77:  return "Skate Lady";
 case 78:  return "Skate Guy";
 case 79:  return "Shopper #1";
 case 80:  return "Shopper #2";
 case 81:  return "Tourist #1";
 case 82:  return "Tourist #2";
 case 83:  return "Cuban #1";
 case 84:  return "Cuban #2";
 case 85:  return "Haitian #3";
 case 86:  return "Haitian #4";
 case 87:  return "Shark #1";
 case 88:  return "Shark #2";
 case 89:  return "Diaz Guy #1";
 case 90:  return "Diaz Guy #2";
 case 91:  return "DBP Security #1";
 case 92:  return "DBP Security #2";
 case 93:  return "Biker #1";
 case 94:  return "Biker #2";
 case 95:  return "Vercetti Guy #1";
 case 96:  return "Vercetti Guy #2";
 case 97:  return "Undercover Cop #1";
 case 98:  return "Undercover Cop #2";
 case 99:  return "Undercover Cop #3";
 case 100: return "Undercover Cop #4";
 case 101: return "Undercover Cop #5";
 case 102: return "Undercover Cop #6";
 case 103: return "Rich Guy";
 case 104: return "Cool Guy #3";
 case 105: return "Prostitute #3";
 case 106: return "Prostitute #4";
 case 107: return "Diaz";
 case 108: return "Love Fist #1";
 case 109: return "Ken Rosenburg";
 case 110: return "Candy Suxx";
 case 111: return "Hilary";
 case 112: return "Love Fist #2";
 case 113: return "Phil";
 case 114: return "Rockstar Guy";
 case 115: return "Sonny";
 case 116: return "Lance";
 case 117: return "Mercedes";
 case 118: return "Love Fist #3";
 case 119: return "Alex Shrub";
 case 120: return "Lance (Cop)";
 case 121: return "Lance";
 case 122: return "Cortez";
 case 123: return "Love Fist #4";
 case 124: return "Columbian Guy #1";
 case 125: return "Hilary (Robber)";
 case 126: return "Mercedes";
 case 127: return "Cam";
 case 128: return "Cam (Robber)";
 case 129: return "Phil (One Arm)";
 case 130: return "Phil (Robber)";
 case 131: return "Cool Guy #4";
 case 132: return "Pizza Man";
 case 133: return "Taxi Driver #1";
 case 134: return "Taxi Driver #2";
 case 135: return "Sailor #1";
 case 136: return "Sailor #2";
 case 137: return "Sailor #3";
 case 138: return "Chef";
 case 139: return "Criminal #2";
 case 140: return "French Guy";
 case 141: return "Garbageman #2";
 case 142: return "Haitian #5";
 case 143: return "Waitress #2";
 case 144: return "Sonny Guy #1";
 case 145: return "Sonny Guy #2";
 case 146: return "Sonny Guy #3";
 case 147: return "Columbian Guy #2";
 case 148: return "Haitian #6";
 case 149: return "Beach Guy #8";
 case 150: return "Garbageman #3";
 case 151: return "Garbageman #4";
 case 152: return "Garbageman #5";
 case 153: return "Tranny";
 case 154: return "Thug #5";
 case 155: return "SpandEx Guy #1";
 case 156: return "SpandEx Guy #2";
 case 157: return "Stripper #1";
 case 158: return "Stripper #2";
 case 159: return "Stripper #3";
 case 160: return "Store Clerk";
 case 161: return NULL;
 case 162: return "Tommy with Suit";
 case 163: return "Worker Tommy";
 case 164: return "Golfer Tommy";
 case 165: return "Cuban Tommy";
 case 166: return "VCPD Tommy";
 case 167: return "Bank Robber Tommy";
 case 168: return "Street Tommy";
 case 169: return "Mafia Tommy";
 case 170: return "Jogger Tommy #1";
 case 171: return "Jogger Tommy #2";
 case 172: return "Guy With Suit #1";
 case 173: return "Guy With Suit #3";
 case 174: return "Prostitute #5";
 case 175: return "Rico";
 case 176: return "Prostitute #3";
 case 177: return "Club Lady";
 case 178: return "Prostitute #2";
 case 179: return "Skull T-Shirt Guy";
 case 180: return "Easter Egg Tommy";
 case 181: return "Diaz Gangster #1";
 case 182: return "Diaz Gangster #2";
 case 183: return "Hood Lady";
 case 184: return "Punk #1";
 case 185: return "Tray Lady";
 case 186: return "Kent Paul";
 case 187: return "Taxi Driver #1";
 case 188: return "Deformed Ken Rosenberg";
 case 189: return "Deformed Woman";
 case 190: return "Deformed Man";
 case 191: return "Deformed Cortez";
 case 192: return "Deformed Lance Vance";
 case 193: return "Thief #1";
 case 194: return "Thief #2";
 case 195: return "Thief #3";
case 200: return "Custom Skin 1";
case 201: return "Custom Skin 2";
case 202: return "Custom Skin 3";
case 203: return "Custom Skin 4";
case 204: return "Custom Skin 5";
case 205: return "Custom Skin 6";
case 206: return "Custom Skin 7";
case 207: return "Custom Skin 8";
case 208: return "Custom Skin 9";
case 209: return "Custom Skin 10";
case 210: return "Custom Skin 11";
case 211: return "Custom Skin 12";
case 212: return "Custom Skin 13";
case 213: return "Custom Skin 14";
case 214: return "Custom Skin 15";
case 215: return "Custom Skin 16";
case 216: return "Custom Skin 17";
case 217: return "Custom Skin 18";
case 218: return "Custom Skin 19";
case 219: return "Custom Skin 20";
case 220: return "Custom Skin 21";
case 221: return "Custom Skin 22";
case 222: return "Custom Skin 23";
case 223: return "Custom Skin 24";
case 224: return "Custom Skin 25";
case 225: return "Custom Skin 26";
case 226: return "Custom Skin 27";
case 227: return "Custom Skin 28";
case 228: return "Custom Skin 29";
case 229: return "Custom Skin 30";
case 230: return "Custom Skin 31";
case 231: return "Custom Skin 32";
case 232: return "Custom Skin 33";
case 233: return "Custom Skin 34";
case 234: return "Custom Skin 35";
case 235: return "Custom Skin 36";
case 236: return "Custom Skin 37";
case 237: return "Custom Skin 38";
case 238: return "Custom Skin 39";
case 239: return "Custom Skin 40";
case 240: return "Custom Skin 41";
case 241: return "Custom Skin 42";
case 242: return "Custom Skin 43";
case 243: return "Custom Skin 44";
case 244: return "Custom Skin 45";
case 245: return "Custom Skin 46";
case 246: return "Custom Skin 47";
case 247: return "Custom Skin 48";
case 248: return "Custom Skin 49";
case 249: return "Custom Skin 50";
default: return "No Such Skin";
}
}

Grand Hunting Project
Join #SLC, #KAKAN, #Doom, #GHP @LUnet

Retired VC:MP Player/Scripter :P

KAKAN

Why not use an array? They are faster, atleast, more faster than switch-case
oh no

.

#14
Quote from: KAKAN on Mar 06, 2016, 07:48 PMWhy not use an array? They are faster, atleast, more faster than switch-case

Because you need to do range checking on arrays and a switch-case is usually nothing more than just a table. Not to mention that some IDs skip a few indexes. And you can't easilly throw a "no such id" error in that case.

Although I did use arrays in my Squirrel plugin because I wanted to allow the scripter to customize skin names.
.