Rank Id's
#1

So i made a faction system but it is currently very bulky and i was wondering if there was a way to do rank Id's.
I have this in the enum
PHP код:
    rank1[100],
    
rank2[100],
    
rank3[100],
    
rank4[100],
    
rank5[100],
    
rank6[100],
    
rank7[100],
    
rank8[100],
    
rank9[100],
    
rank10[100],
    
skinidrank1,
    
skinidrank2,
    
skinidrank3,
    
skinidrank4,
    
skinidrank5,
    
skinidrank6,
    
skinidrank7,
    
skinidrank8,
    
skinidrank9,
    
skinidrank10
but that makes it only have 10 ranks and 10 skins I was wondering if there was way to make it dyanmic such as /add rank [ranknumber][skinid] and it would also make script less bulk because if I have something like /promote I have to do if = 1 then print rank1 elseif == 2 printe rank2 instead have a rankid so i can just be like print rankid and it would output the rank name for that number instead of having to have else if ten times if you need some clarification just ask
Reply
#2

Bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)