SA-MP Forums Archive
enum question and y_ini [ +rep ] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: enum question and y_ini [ +rep ] (/showthread.php?tid=319408)



enum question and y_ini [ +rep ] - RicaNiel - 19.02.2012

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


Re: enum question and y_ini [ +rep ] - RicaNiel - 19.02.2012

guys anyone please


Re: enum question and y_ini [ +rep ] - ReneG - 19.02.2012

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.