01.01.2018, 16:07
I get a tag mismatch:
Code:
#include <a_samp> enum PlayerInfo_t { Name[MAX_PLAYER_NAME], MoneyInHand, BankMoney, Team, Skin, Kills, Deaths, WantedLevel, AdminLevel, Muted, Jailed, Frozen } new PlayerInfo[MAX_PLAYERS + 1][PlayerInfo_t]; public OnGameModeInit() { PlayerInfo[MAX_PLAYERS][Team] = -1; PlayerInfo[MAX_PLAYERS][Skin] = 1; PlayerInfo[MAX_PLAYERS][MoneyInHand] = PlayerInfo[MAX_PLAYERS][BankMoney] = PlayerInfo[MAX_PLAYERS][Kills] = PlayerInfo[MAX_PLAYERS][Deaths] = PlayerInfo[MAX_PLAYERS][WantedLevel] = PlayerInfo[MAX_PLAYERS][AdminLevel] = 0; PlayerInfo[MAX_PLAYERS][Muted] = true; PlayerInfo[MAX_PLAYERS][Jailed] = PlayerInfo[MAX_PLAYERS][Frozen] = false; return 1; } public OnPlayerConnect(playerid) { memcpy(PlayerInfo[playerid], PlayerInfo[MAX_PLAYERS], 0, sizeof(PlayerInfo[])*4, sizeof(PlayerInfo[])); return 1; }