Warning 219...at a preceding level
#6

Quote:
Originally Posted by kbalor
Посмотреть сообщение
I'am using Luxadmin

pawn Код:
dcmd_stats(playerid,params[])
{
    new str[512], pDeaths, player1, h, m, s;
    new status1[2][10] = {"Enabled", "Disabled"};
    new status2[2][10] = {"Disabled", "Enabled"};
    new InInterior;
    if(!strlen(params)) player1 = playerid;
    else player1 = strval(params);
    if(!IsPlayerConnected(player1)) return SendClientMessage(playerid, red, "ERROR: Player Not Connected!");
    TotalGameTime(player1, h, m, s);
    if(AccInfo[player1][Deaths] == 0) pDeaths = 1;
    else pDeaths = AccInfo[player1][Deaths];
    if(GetPlayerInterior(player1) != 0) InInterior = 1;
    format(str, sizeof(str), "{DAA520}%s (ID: %d){B0C4DE}\n\n", PlayerName2(player1), player1);
    format(str, sizeof(str), "%sSkinID: %d\n", str, GetPlayerSkin(player1));
    format(str, sizeof(str), "%sScore: %d\n", str, GetPlayerScore(player1));
    format(str, sizeof(str), "%sKills: %d\n", str, AccInfo[player1][Kills]);
    format(str, sizeof(str), "%sDeaths: %d\n", str, AccInfo[player1][Deaths]);
    format(str, sizeof(str), "%sRatio: %d\n", str, Float:AccInfo[player1][Kills]/Float:pDeaths);
    format(str, sizeof(str), "%sPM: %s\n", str, status1[DisablePM[player1]]);
    format(str, sizeof(str), "%sGod: %s\n", str, status2[GodMode[player1]]);
    format(str, sizeof(str), "%sGo's: %s\n", str, status1[GotoDisabled[player1]]);
    format(str, sizeof(str), "%sInterior: %d\n", str, InInterior);
    format(str, sizeof(str), "%sMoney: $%d\n", str, GetPlayerMoney(player1));
    format(str, sizeof(str), "%sPing: %d\n", str, GetPlayerPing(player1));
    format(str, sizeof(str), "%sTime Login: %d hours %d minutes %d seconds\n", str, h, m, s);
    ShowPlayerDialog(playerid, 8435, DIALOG_STYLE_MSGBOX, "Player Statistics", str, "Close", "");
    return 1;
}
This code use params? yes or no?

if this code no use params try:

Код:
dcmd_stats(playerid,params[])
{
   new str[512], pDeaths, h, m, s;
   new status1[2][10] = {"Enabled", "Disabled"};
   new status2[2][10] = {"Disabled", "Enabled"};
   new InInterior;
   if(!IsPlayerConnected(player)) return SendClientMessage(playerid, red, "ERROR: You're connected!");
   TotalGameTime(playerid, h, m, s);
   if(AccInfo[playerid][Deaths] == 0) pDeaths = 1;
   else pDeaths = AccInfo[playerid][Deaths];
   if(GetPlayerInterior(playerid) != 0) InInterior = 1;
   format(str, sizeof(str), "{DAA520}%s (ID: %d){B0C4DE}\n\n", PlayerName2(playerid), playerid);
   format(str, sizeof(str), "%sSkinID: %d\n", str, GetPlayerSkin(playerid));
   format(str, sizeof(str), "%sScore: %d\n", str, GetPlayerScore(playerid));
   format(str, sizeof(str), "%sKills: %d\n", str, AccInfo[playerid][Kills]);
   format(str, sizeof(str), "%sDeaths: %d\n", str, AccInfo[playerid][Deaths]);
   format(str, sizeof(str), "%sRatio: %d\n", str, Float:AccInfo[playerid][Kills]/Float:pDeaths);
   format(str, sizeof(str), "%sPM: %s\n", str, status1[DisablePM[playerid]]);
   format(str, sizeof(str), "%sGod: %s\n", str, status2[GodMode[playerid]]);
   format(str, sizeof(str), "%sGo's: %s\n", str, status1[GotoDisabled[playerid]]);
   format(str, sizeof(str), "%sInterior: %d\n", str, InInterior);
   format(str, sizeof(str), "%sMoney: $%d\n", str, GetPlayerMoney(playerid));
   format(str, sizeof(str), "%sPing: %d\n", str, GetPlayerPing(playerid));
   format(str, sizeof(str), "%sTime Login: %d hours %d minutes %d seconds\n", str, h, m, s);
   ShowPlayerDialog(playerid, 8435, DIALOG_STYLE_MSGBOX, "Player Statistics", str, "Close", "");
   return 1;
}
Reply


Messages In This Thread
Warning 219...at a preceding level - by kbalor - 26.07.2012, 18:50
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 18:57
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:08
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 19:12
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:22
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 19:34
Re: Warning 219...at a preceding level - by FireCat - 26.07.2012, 19:41
Re: Warning 219...at a preceding level - by kbalor - 26.07.2012, 19:43
Re: Warning 219...at a preceding level - by Marlon_Lorran - 26.07.2012, 21:08

Forum Jump:


Users browsing this thread: 2 Guest(s)