Need help about Arrays
#1

I want to have arrays in arrays
ex: PlayerInfo[playerid][pSkill[1-20]]


How to Get this


ps. sorry for my bad english T_T
Reply
#2

pawn Код:
enum myskill
{
    pSkill
};
new PlayerInfo[MAX_PLAYERS][myskill];
Then you can just do in your code the PlayerInfo[playerid][pSkill] stuff.
Reply
#3

thank u Lee_Percox and ****** but i have little question about it

how to create PlayerInfo[playerid][pSkill[0]],PlayerInfo[playerid][pSkill[1]],PlayerInfo[playerid][pSkill[2]]

i cant create pSkill1 2 3 it's usefull

ps. sorry for my bad english
Reply
#4

https://sampwiki.blast.hk/wiki/Keywords:Initialisers#enum
Reply
#5

pawn Код:
enum enumname
{
    pSkill[3]
}

new arrayname[MAX_PLAYERS][enumname];

arrayname[playerid][pSkill][0]
Reply
#6

thank so lot ^^"
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)