SERVER: UNKNOWN COMMAND
#1

pawn Код:
CMD:stats(playerid, params[])
{
    if(GetPVarInt(playerid, "Logged") == 1)
    {
        new kills = GetPVarInt(playerid, "Kills"), deaths = GetPVarInt(playerid, "Deaths");
        format(string, sizeof string, "{00CFCF}Username: {FFFFFF}%s\n\n{00CFCF}Money: {FFFFFF}%i\n{00CFCF}Score: {FFFFFF}%i\n\n{00CFCF}Kills: {FFFFFF}%i\n{00CFCF}Deaths: {FFFFFF}%i\n{00CFCF}Ratio: {FFFFFF}%02f",
        GetName(playerid), GetPlayerMoney(playerid), GetPlayerScore(playerid), GetPVarInt(playerid, "Kills"), GetPVarInt(playerid, "Deaths"), ((kills) / (deaths)));
        ShowPlayerDialog(playerid, 3, DIALOG_STYLE_MSGBOX, "Statistics", string, "Send", "Close");
    }
    return 1;
}
Says UNKNOWN COMMAND ingame.
If i comment out either the ratio or string it will work.
Reply


Messages In This Thread
SERVER: UNKNOWN COMMAND - by iTorran - 28.12.2011, 23:21
Re: SERVER: UNKNOWN COMMAND - by park4bmx - 28.12.2011, 23:26
Re: SERVER: UNKNOWN COMMAND - by [ABK]Antonio - 28.12.2011, 23:26
Re: SERVER: UNKNOWN COMMAND - by iTorran - 29.12.2011, 12:48
Re: SERVER: UNKNOWN COMMAND - by Seven_of_Nine - 29.12.2011, 12:57
Re: SERVER: UNKNOWN COMMAND - by FTLOG - 29.12.2011, 13:08
Re: SERVER: UNKNOWN COMMAND - by iTorran - 29.12.2011, 14:05
Re: SERVER: UNKNOWN COMMAND - by Stigg - 29.12.2011, 14:22
Re: SERVER: UNKNOWN COMMAND - by iTorran - 29.12.2011, 15:33

Forum Jump:


Users browsing this thread: 2 Guest(s)