Ray_Tensaro
Умник
Проблема-(464) : warning 217: loose indentation
помоги плиз)
C++:
new regmaleskins[9][4] =
{
{19,21,22,28},
{24,25,36,67},
{14,142,182,183},
{29,96,101,26},
{2,37,72,202},
{1,3,234,290},
{23,60,170,180},
{20,47,48,206},
{44,58,132,229}
};
new regfemaleskins[9][2] = //амалогичмо с жемскими
{
{13,69},
{9,190},
{10,218},
{41,56},
{31,151},
{39,89},
{169,193},
{207,225},
{54,130}
};
тут ошибка new newskinindex;
switch(player_info[playerid][RACE])
{
case 1: {}
case 2: newskinindex+=3;
case 3: newskinindex+=6;
}
switch(player_info[playerid][AGE])
{
case 18..29: {}
case 30..45: newskinindex++;
case 46..60: newskinindex+=2;
}
if(player_info[playerid][SEX] == 1) player_info[playerid][SKIN] = regmaleskins[newskinindex][random(4)];
else player_info[playerid][SKIN] = regfemaleskins[newskinindex][random(2)];
printf("%d", player_info[playerid][SKIN]);
SCM(playerid, COLOR_WHITE, "Регистрация завершена");
}
}
return 1;
}
