[Tutorial] Creative & smart scripting techniques - improve performance & readablity in one go
#37

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;
}
Reply


Messages In This Thread
Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 25.06.2016, 16:16
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by iKarim - 25.06.2016, 17:20
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Crayder - 25.06.2016, 17:56
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Konstantinos - 25.06.2016, 18:05
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Battlezone - 27.06.2016, 20:54
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by PrO.GameR - 28.06.2016, 14:40
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Vince - 28.06.2016, 15:18
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by CodeStyle175 - 28.06.2016, 16:28
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by PrO.GameR - 28.06.2016, 17:01
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by iKarim - 28.06.2016, 19:24
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Freedom. - 28.06.2016, 20:33
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by iKarim - 28.06.2016, 21:54
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by PrO.GameR - 29.06.2016, 00:35
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by DavidBilla - 04.07.2016, 19:32
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Crayder - 04.07.2016, 20:32
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 06.07.2016, 14:30
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by K0P - 06.07.2016, 14:36
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by SickAttack - 06.07.2016, 14:44
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 06.07.2016, 14:51
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by SickAttack - 06.07.2016, 15:26
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 06.07.2016, 15:33
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by SickAttack - 06.07.2016, 15:47
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 06.07.2016, 16:26
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Uberanwar - 08.07.2016, 16:35
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Jefff - 09.07.2016, 02:08
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Dayvison_ - 12.07.2016, 01:16
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by OneDay - 12.07.2016, 18:55
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Untonyst - 13.07.2016, 22:34
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by OneDay - 14.07.2016, 01:00
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Crayder - 14.07.2016, 02:39
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by OneDay - 14.07.2016, 15:23
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 15.07.2016, 12:29
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by OneDay - 18.07.2016, 17:09
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Sasino97 - 16.07.2017, 16:31
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by ][Noname][ - 24.11.2017, 13:11
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 17.12.2017, 15:52
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by VincenzoDrift - 01.01.2018, 16:07
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by ][Noname][ - 15.01.2018, 11:53
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Kaperstone - 16.01.2018, 00:54
Re: Creative & smart scripting techniques - improve performance & readablity in one go - by Yashas - 31.01.2018, 18:55

Forum Jump:


Users browsing this thread: 7 Guest(s)