help with this /stats
#6

Now it should work properly

pawn Код:
CMD:stats(playerid, params[])
{
    if(P_DATA[playerid][P_Registered] == 0) return ShowInfoTD(playerid, "~r~~h~You must be registered by using /register before using this command.");
    if(P_DATA[playerid][P_LoggedIn] == 0) return 1;

    new stats[300];
    new str[155];
    format(str,sizeof(str),"{FFFFFF}Name: %s\nAccount ID: %d\nAdmin: %d\nVIP: %dScore: %d\nMoney: %d\n", ReturnPlayerName(playerid), P_DATA[playerid][P_AccID],P_DATA[playerid][P_Admin], GetPlayerScore(playerid),GetPlayerMoney(playerid));
    strcat(stats, str, sizeof(str));
    format(str,sizeof(str),"Autofix: %i\nAutoflip: %i\nManualflip: %i\nBounce: %i\nSpeed Boost: %i\nNos: %i", P_DATA[playerid][P_AutoFix], P_DATA[playerid][P_AutoFlip],P_DATA[playerid][P_ManualFlip], P_DATA[playerid][P_Bounce],P_DATA[playerid][P_SpeedBoost],P_DATA[playerid][P_Nos]);
    strcat(stats,  str,sizeof(str));
    ShowPlayerDialog(playerid, DIALOG_ID_STATS, DIALOG_STYLE_MSGBOX, "{0088FF}XFPE - Stats", stats,"OK","");

    return 1;
}
Reply


Messages In This Thread
[SOLVED] help with this /stats - by ahmad95 - 06.12.2013, 01:33
Respuesta: help with this /stats - by [CG]Milito - 06.12.2013, 01:52
Re: Respuesta: help with this /stats - by ahmad95 - 06.12.2013, 01:56
Respuesta: help with this /stats - by [CG]Milito - 06.12.2013, 02:04
Re: help with this /stats - by ahmad95 - 06.12.2013, 02:15
Respuesta: help with this /stats - by [CG]Milito - 06.12.2013, 02:21
Re: help with this /stats - by ahmad95 - 06.12.2013, 02:27
Respuesta: help with this /stats - by [CG]Milito - 06.12.2013, 02:29

Forum Jump:


Users browsing this thread: 1 Guest(s)