Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

Array

$
0
0
Hello!

I encountered issue which I can't figure out how the code is created. However what I'm trying to do is skin selection based on gender and race that was picked by player. Here is the code of gender = Male and Race = Hispanic:

Code:

enum Skins {
        SkinID,
        SkinGender, // 0 Male, 1 Female
        SkinRace, // 0 Hispanic, 1 Afro-American, 2 Caucasian, 3 Asian
};

new DisplaySkin[][Skins] = {
        Male Hispanic Skins
        {"30,0,0"},
        {"47,0,0"},
        {"48,0,0"},
        {"108,0,0"},
        {"109,0,0"},
        {"110,0,0"},
        {"113,0,0"},
        {"115,0,0"},
        {"116,0,0"},
        {"273,0,0"}
};

so the problem is how can I create (using clickable textdraws) that if player will choose his gender as Male and Race as Hispanic he can choose only the skins in this array above, if someone can create a code for me or lead me in right direction I would appriciate it. Thanks for help in advance.

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>