new skin = GetPlayerSkin(playerid);
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5; else pInfo[playerid][KiSize][skin] += 0.5;
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1514) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1527) : warning 213: tag mismatch
pInfo[playerid][skin][KiSize]
//lets says that you are having enum like this:
enum E_SKIN_DATA
{
Float:KiSize,
// etc
};
new pInfo[MAX_PLAYERS][300][SKIN_DATA]; // 300 for the skins
// then use it like this
Float:KiSize
Float:KiSize[300]
// lets says that you are having enum like this:
enum E_PLAYER_DATA // change to your player info enum
{
// your other data
skin,
Float:KiSize,
// your other data
};
new pInfo[MAX_PLAYERS][E_PLAYER_DATA];
// then use it like this:
pInfo[playerid][skin] = GetPlayerSkin(playerid);
// and for the size:
pInfo[playerid][KiSize] = 1.5;
KiMax[MAX_SKINS],
Float:KiMax[MAX_SKINS],
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(622) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1525) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1538) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(3096) : warning 213: tag mismatch
INI_Int("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]);
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5;
if(pInfo[playerid][KiSize][skin] == 0.5) pInfo[playerid][KiSize][skin] = 0.5;
new KiGiocatore = pInfo[playerid][KiMax][skin];
new skin = GetPlayerSkin(playerid);
Can you show me your PlayerInfo enum please? Only the part that defines "skin".
|
Код:
KiMax[MAX_SKINS], but when i try Код:
Float:KiMax[MAX_SKINS], Код:
F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(622) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1525) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(1538) : warning 213: tag mismatch F:\Game Modes\Dragon Ball Z\gamemodes\dbz.pwn(3096) : warning 213: tag mismatch Код:
INI_Int("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]); Код:
if(pInfo[playerid][KiSize][skin] == 0.0) pInfo[playerid][KiSize][skin] = 1.5; Код:
if(pInfo[playerid][KiSize][skin] == 0.5) pInfo[playerid][KiSize][skin] = 0.5; Код:
new KiGiocatore = pInfo[playerid][KiMax][skin]; Код:
new skin = GetPlayerSkin(playerid); |
INI_Float("KiMax[MAX_SKINS]",pInfo[playerid][KiMax]);
KiMax[MAX_SKINS] = value
INI_Float("KiMax["MAX_SKINS"]", pInfo[playerid][KiMax]);
enum PlayerInfo { Pass[129], //User's password Adminlevel, //User's admin level VIPlevel, //User's vip level Banned, ball1, ball2, ball3, ball4, ball5, ball6, ball7, Score, DragonRadar, Kills, //User's kills Deaths, //User's deaths Jailed, //was user jailed or not JailTime, // Jail Timer pBanexp, pBanres[100], pBanPerm, pBanAdmin[20], pBanIPP[20], style[MAX_SKINS], attack[MAX_SKINS], speed[MAX_SKINS], HEALTHMax[MAX_SKINS], Float:KiMax[MAX_SKINS], KiSize[MAX_SKINS], dsword, dBazooka, dknife, }; new pInfo[MAX_PLAYERS][PlayerInfo];
#define MAX_SKINS 299