02.04.2013, 13:21
Hello.
I'm currently working on battlefield server (writting from scratch) and after testing I noticed, that console outputs not array values from enum, but weird symbols and smiles.
So, my question is:
Can I use such arrays?
There gonna be 4 classes per player and each class will have different stats and player will need to increase stats and etc individually.
For example: Assault class rank_lvl = PlayerInfo[playerid][0][rank_lvl];
I'm currently working on battlefield server (writting from scratch) and after testing I noticed, that console outputs not array values from enum, but weird symbols and smiles.
So, my question is:
Can I use such arrays?
Код:
enum pInfo
{
// 0 - assault, 1 - engineer, 2 - sniper, 3 - medic
rank_lvl, // 30 total
experience, // current experience points
Float:health, Float:armor,
credits, kills, deaths, score, timePlayed,
}
new PlayerInfo[MAX_PLAYERS][4][pInfo];
For example: Assault class rank_lvl = PlayerInfo[playerid][0][rank_lvl];



