SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 09/09/2016, 04:27 AM   #11
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,824
Reputation: 607
Default Re: Skin Tags (a bunch of skin info)

v1.00
- Packed strings
- Skin ID range verification.
-- String functions return 0 on invalid ID's, 1 otherwise.
-- Index functions return -1 on invalid ID's, ID otherwise.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 09/09/2016, 12:54 PM   #12
JustMe.77
Huge Clucker
 
JustMe.77's Avatar
 
Join Date: Jun 2013
Location: Germany
Posts: 269
Reputation: 63
Default Re: Skin Tags (a bunch of skin info)

Well done, you've put much effort into it !
JustMe.77 is offline   Reply With Quote
Old 09/09/2016, 02:34 PM   #13
Kaliber
Gangsta
 
Kaliber's Avatar
 
Join Date: Jun 2012
Location: Localhost
Posts: 938
Reputation: 123
Default Re: Skin Tags (a bunch of skin info)

Proud of you!

Well done!
__________________
Kaliber is offline   Reply With Quote
Old 09/09/2016, 10:41 PM   #14
Ivan_Ino
Big Clucker
 
Join Date: Oct 2012
Location: Croatia
Posts: 148
Reputation: 120
Default Re: Skin Tags (a bunch of skin info)

Cool stuff
Ivan_Ino is offline   Reply With Quote
Old 09/09/2016, 11:19 PM   #15
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,202
Reputation: 1242
Default Re: Skin Tags (a bunch of skin info)

You forgot an important function.

Code:
GetSkinSexualType(skinid)

SEX_TYPE_STRAIGHT
SEX_TYPE_GAY
SEX_TYPE_BISEXUAL
Also how about....

Code:
GetSkinBreastSize(skinid)

BREAST_SIZE_NONE
BREAST_SIZE_A
BREAST_SIZE_B
BREAST_SIZE_C
BREAST_SIZE_D
BREAST_SIZE_DD

GetSkinAge(skinid)
GetSkinHairColor(skinid)
GetSkinClothesType(skinid)
You must make these functions and more to impress us
Pottus is offline   Reply With Quote
Old 10/09/2016, 02:35 AM   #16
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,824
Reputation: 607
Default Re: Skin Tags (a bunch of skin info)

Quote:
Originally Posted by Pottus View Post
You forgot an important function.

Code:
GetSkinSexualType(skinid)

SEX_TYPE_STRAIGHT
SEX_TYPE_GAY
SEX_TYPE_BISEXUAL
Also how about....

Code:
GetSkinBreastSize(skinid)

BREAST_SIZE_NONE
BREAST_SIZE_A
BREAST_SIZE_B
BREAST_SIZE_C
BREAST_SIZE_D
BREAST_SIZE_DD

GetSkinAge(skinid)
GetSkinHairColor(skinid)
GetSkinClothesType(skinid)
You must make these functions and more to impress us
I honestly like all of these ideas... xD
I'll mess around with all of these when I get the time.
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 10/09/2016, 11:35 PM   #17
Pottus
Godfather
 
Pottus's Avatar
 
Join Date: Jun 2012
Posts: 5,202
Reputation: 1242
Default Re: Skin Tags (a bunch of skin info)

A few more...

Code:
GetSkinWeight(skinid)
GetSkinSexAppeal(skinid)
GetSkinBeard(skinid)

Yes skinid 77 should have a beard


if(IsPlayerFemale(playerid) && GetSkinBeard(skinid)) SendClientMessage(playerid, 0xFFFFFFFF, "You are one nasty ass bitch");
Pottus is offline   Reply With Quote
Old 11/09/2016, 12:56 AM   #18
Luis-
High-roller
 
Luis-'s Avatar
 
Join Date: Jan 2010
Location: England
Posts: 4,068
Reputation: 378
Default Re: Skin Tags (a bunch of skin info)

Fucking brilliant! Makes my life a hell of a lot easier. Thanks
Luis- is offline   Reply With Quote
Old 11/09/2016, 06:41 PM   #19
Crayder
High-roller
 
Crayder's Avatar
 
Join Date: Sep 2013
Location: Flames of Hell
Posts: 3,824
Reputation: 607
Default Re: Skin Tags (a bunch of skin info)

v2.00
- A lot of new functions
- A lot of new definitions

(@Pottus: Including GetSkinSexAppeal...)
__________________
Those who deserve reputation, do not need to beg for it.
Also, don't expect the help you need when offering reputation, you'll just be attracting Rep Hunters.
Join SA-MP Discord!
Crayder is offline   Reply With Quote
Old 11/09/2016, 08:23 PM   #20
Stinged
High-roller
 
Join Date: Feb 2013
Posts: 1,584
Reputation: 187
Default Re: Skin Tags (a bunch of skin info)

I noticed these while looking at the code:
Code:
if(0 > skinid > 311 && skinid != 74)
I'm guessing that's an invalid skin check?

That won't work, because it's illogical.
0 can't be bigger than 311.

But that's not the only fault with it.
What your statement means:
If the skinid isn't between 0 and 311 (that won't even work because 0 < 311 and not >) AND it's equal to 74, it's invalid.
How can 74 be outside of 0..311?

It's supposed to be like this:
Code:
if (!(0 <= skinid <= 311) || skinid != 74)
What this statement means:
If the skinid isn't between 0 and 311 or the skinid equals 74, it's invalid.

You can test it out with this:
Code:
new skinid = 74;
printf("\nif (!(0 <= %i <= 311) || %i == 74)", skinid, skinid);
if (!(0 <= skinid <= 311) || skinid == 74)
	print("\tinvalid");
else print("\tvalid");

printf("\nif(0 > %i > 311 && %i != 74)", skinid, skinid);
if(0 > skinid > 311 && skinid != 74)
	print("\tinvalid");
else print("\tvalid");
Stinged is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Skin changeCommand works but doesnt change skin SkillNasr Scripting Help 4 27/06/2016 08:16 PM
[Include] xskins.inc - Skins Info + Skin Check Optimizations Yashas Includes 7 25/01/2014 02:40 PM
Why when choosing skin, the skin doesnt show ? bustern Scripting Help 4 28/08/2013 02:54 PM
Help me to change skin on player class select - read for more info please help! buonggiorno Help Archive 1 19/01/2010 10:17 PM


All times are GMT. The time now is 02:29 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.