ENUM with a string?
#1

This is what I currently have in my enum..

pawn Код:
enum _PINFO
{
    pKills,
    pDeaths,
    pLevel,
    pAdmin,
    pMoney,
    pSkin,
    pFaction,
    pFRank,
    ContractAmount,
    ContractedBy[MAX_PLAYER_NAME],
    Float:pLastX,
    Float:pLastY,
    Float:pLastZ
}
But the only problem is, it's giving me the error: error 047: array sizes do not match, or destination array is too small

Line 470:

pawn Код:
PVar[playerid][ContractedBy] = "Nobody";
Reply
#2

try

ContractedBy[128],
Reply
#3

Quote:
Originally Posted by Ricop522
Посмотреть сообщение
try

ContractedBy[128],
Same error, already tried that.
Reply
#4

pawn Код:
format(PVar[playerid][ContractedBy], MAX_PLAYER_NAME, "Nobody");
Reply
#5

Quote:
Originally Posted by exora
Посмотреть сообщение
pawn Код:
format(PVar[playerid][ContractedBy], MAX_PLAYER_NAME, "Nobody");
Thank you!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)