enum question and y_ini [ +rep ]
#1

Guys
in enum for player data i use

use for player information and etc..........
pawn Код:
enum pInfo
{
    pPass,
    pCash,
    pAdmin,
    pKills,
    pDeaths
}
new PlayerInfoMAX_PLAYERS][pInfo];
now my real problem is for ServerData like Dynamic Admin system
like if i make a command /richlist it will show the list of rich player
and to do that you need to put the rich money amount

now i want is to make like this

pawn Код:
enum sInfo
{
    sRichList,
}
new sData[sInfo]
but when i make the command to change the sRichList ammount
it will not change just still 0

the command would be like this
/chagerichmoney

or CMD:richmoney

and please my hypothesis maybe its in the creation of data
can anyone help me please i will give reputation
Reply
#2

guys anyone please
Reply
#3

Sweet mother of holy. You are using your enum oddly first of all. Second, you need to save it as a string, and make it correspond with the command.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)