25.11.2018, 01:04
My Logic:
- enumerating some Variable's & using 'PVar' for easy resetting
Notice: i'm loading this in a filterscript so i returned 0. GM is empty for testing purpose
will this make sense? can you show me some advice
- enumerating some Variable's & using 'PVar' for easy resetting
Код:
enum PLAYER_DATA { Logged, Regged, SQLID, Name[MAX_PLAYER_NAME], Password[WHIRLPOOL_LEN], Ip[16 + 1], } new Player[MAX_PLAYERS][PLAYER_DATA]; ... public OnPlayerConnect(playerid) { Player[playerid][Logged] = 0; Player[playerid][Regged] = 0; SetPVarInt(playerid, "Logged", Player[playerid][Logged]); SetPVarInt(playerid, "Regged", Player[playerid][Regged]); return 0; }
will this make sense? can you show me some advice