Function "ShowStats" is not implemented
#1

Hey. Okay so I am trying to make a /stats command. I found a good function in SAGC script and decided to use it in my script. Here is the error I get;
pawn Код:
myscript.pwn(267) : error 004: function "ShowStats" is not implemented
Here is my code;
At top of the script (above main()):
pawn Код:
forward ShowStats(playerid,targetid);
/stats commands:
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
    {
        ShowStats(playerid,playerid); [COLOR="Red"]This is the error line, 267.[/COLOR]
        return 1;
    }
The function at the bottom of the script:
pawn Код:
public ShowStats(playerid,targetid)
{
    if(IsPlayerConnected(playerid)&&IsPlayerConnected(targetid))
    {
        if(gPlayerLogged[targetid])
        {
            SendClientMessage(playerid,COLOR_FUNNYGREEN,"STATS");

            new wstring[128];
            new score = PlayerInfo[targetid][pScore];
            GetPlayerHealth(targetid,hp);

            format(wstring, sizeof(wstring), "Level: %d | Hдlsa: %.1f",score, hp);
            SendClientMessage(playerid,COLOR_WHITE, wstring);
        }
    }
}
Here is the code I remade into the above code, see if I forgot to add something to my code;
http://pastebin.com/cDBmeKPi

If there is anything else I must post in order to solve this, just tell and I will do it.

Thanks for reading! Please reply if you have a solution for this.
Reply


Messages In This Thread
Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:42
Re: Function "ShowStats" is not implemented - by zSuYaNw - 13.01.2011, 20:46
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:48
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 20:48
Re: Function "ShowStats" is not implemented - by zSuYaNw - 13.01.2011, 20:50
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 20:51
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 21:06
Re: Function "ShowStats" is not implemented - by Parrot - 13.01.2011, 21:08
Re: Function "ShowStats" is not implemented - by Scenario - 13.01.2011, 21:26
Re: Function "ShowStats" is not implemented - by Parrot - 14.01.2011, 09:23

Forum Jump:


Users browsing this thread: 1 Guest(s)