21.03.2017, 03:46
You're overthinking it:
PHP код:
#include <a_samp>
enum E_PLAYER_DATA {
pAdmin
};
new PlayerInfo[MAX_PLAYERS][E_PLAYER_DATA];
main() {
new
playerid = 10
;
printf("[BEFORE] Player[%d][pAdmin] == %d", playerid, PlayerInfo[playerid][pAdmin]);
Increase_Data(playerid, pAdmin);
printf("[AFTER] Player[%d][pAdmin] == %d", playerid, PlayerInfo[playerid][pAdmin]);
}
Increase_Data(playerid, E_PLAYER_DATA:enumerator) {
PlayerInfo[playerid][enumerator] ++;
return true;
}