Are you using save system or what?
You have to give more details. |
enum UserEnum { //saved data u_admin, u_vip, u_kills, u_deaths, u_score, u_money, u_hours, u_minutes, u_seconds,CMD:savestats(playerid, params[]) { if(GetPVarType(playerid, "GAdmin_Loggedin") == PLAYER_VARTYPE_NONE) return SendClientMessage(playerid, COLOR_FIREBRICK, "ERROR: You are not registered or logged in."); GetPlayerConnectedTime(playerid, gUser[playerid][u_hours], gUser[playerid][u_minutes], gUser[playerid][u_seconds]); new userid = BUD::GetNameUID(ReturnPlayerName(playerid)); BUD::SetStringEntry(userid, "ip", ReturnPlayerIP(playerid)); BUD::SetIntEntry(userid, "admin", gUser[playerid][u_admin]); BUD::SetIntEntry(userid, "vip", gUser[playerid][u_vip]); BUD::SetIntEntry(userid, "kills", gUser[playerid][u_kills]); BUD::SetIntEntry(userid, "deaths", gUser[playerid][u_deaths]); BUD::SetIntEntry(userid, "score", GetPlayerScore(playerid)); BUD::SetIntEntry(userid, "money", GetPlayerMoney(playerid)); BUD::SetIntEntry(userid, "hours", gUser[playerid][u_hours]); BUD::SetIntEntry(userid, "minutes", gUser[playerid][u_minutes]); BUD::SetIntEntry(userid, "seconds", gUser[playerid][u_seconds]); BUD::SetIntEntry(userid, "logged", 0); SendClientMessage(playerid, COLOR_GREEN, "ACCOUNT: Your stats have been saved. (Your stats automatically saves after disconnect though)"); PlayerPlaySound(playerid, 1057, 0.0, 0.0, 0.0); return 1; }