28.06.2015, 03:42
pawn Код:
enum SB_Type {RED_TWI, DES_TWI}
enum SB_Data {sbName[MAX_PLAYER_NAME], sbMinute, sbSecond}
new ScoreBoard[SB_Type][10][SB_Data];
pawn Код:
public LoadData_ScoreBoard(name[], value[])
{
new str[2][MAX_PLAYER_NAME];
for(new t; t < 2; t++) for(new i; i < 10; i++)
{
format(str[0], 24, "name_%i_%i", t+1, i+1);
INI_String(str[0], ScoreBoard[t][i][sbName], MAX_PLAYER_NAME);
format(str[1], 24, "minute_%i_%i", t+1, i+1);
INI_Int(str[1], ScoreBoard[t][i][sbMinute]);
format(str[1], 24, "second_%i_%i", t+1, i+1);
INI_Int(str[1], ScoreBoard[t][i][sbSecond]);
}
return 1;
}