02.04.2013, 02:29
Here is my code:
I am getting these errors:
Both of those are on lines " if(pInfo[playerid][pGender] == "female")" and "if(pInfo[playerid][pGender] == "male")"
How do I make it check for male and female?
pawn Код:
if(pInfo[playerid][pGender] == "male")
{
new size = sizeof(RandMaleReg);
new randn = random(size);
new randomskin = RandMaleReg[randn];
pInfo[playerid][pSkinID] = randomskin;
}
if(pInfo[playerid][pGender] == "female")
{
new size = sizeof(RandFemaleReg);
new randn = random(size);
new randomskin = RandFemaleReg[randn];
pInfo[playerid][pSkinID] = randomskin;
}
Код:
error 033: array must be indexed (variable "-unknown-") error 033: array must be indexed (variable "-unknown-")
How do I make it check for male and female?