MySQL /stats command
#1

Hello,

I know this is not a script request thread but i would like someone to help me with this script/idea.

I am trying to make a /stats commands which retrieves data from my MySQL database and shows it to the player via a dialog. The main idea is to show stats as any other command does but since my saving system is MySQL i would like to get my data from there and display it to the player.
My MySQL datsbase table name is: "accounts"(without quotes).

Things i would like to see in the /stats dialog.

Код:
Username:
Admin Level
Score:
Kills:
Deaths:
My mysql database fields are(its according to the above order of stats)

Код:
nick
admin
score
kills
death
I tried constructing a command but it didnt work, so i removed it but now i realized i could ask for help via samp forums.It would be great if someone could help me with it.
Reply


Messages In This Thread
MySQL /stats command - by ZBits - 21.12.2013, 08:40
Re: MySQL /stats command - by CutX - 21.12.2013, 08:50
Re: MySQL /stats command - by ZBits - 21.12.2013, 23:02

Forum Jump:


Users browsing this thread: 2 Guest(s)