[Help] Stats system
#6

I added this:

Код:
#include <sscanf2>

#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1

public OnPlayerCommandText(playerid, cmdtext[])
{
    dcmd(stats, 3, cmdtext);
    return 1;
}

dcmd_stats(playerid, params[])
{
    new string[32];
    format(string,sizeof(string),"Kill: %d",Killz[playerid]);
    SendClientMessage(playerid,-1,string);
    format(string,sizeof(string),"Death: %d",Deathz[playerid]);
    SendClientMessage(playerid,-1,string);
    return 1;
}
I get this warning:
Код:
C:\Users\Chaccour\Desktop\CS\filterscripts\savings.pwn(80) : warning 203: symbol is never used: "params"
And I tried the cmd, it didnt show anythingg
Reply


Messages In This Thread
[Help] Stats system - by alainchaccour - 18.10.2011, 17:15
Re: [Help] Stats system - by =WoR=Varth - 18.10.2011, 17:20
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:23
Re: [Help] Stats system - by =WoR=Varth - 18.10.2011, 17:25
Re: [Help] Stats system - by Kavinsky - 18.10.2011, 17:32
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:32
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:35
Re: [Help] Stats system - by Stigg - 18.10.2011, 17:36
Re: [Help] Stats system - by alainchaccour - 18.10.2011, 17:39
Re: [Help] Stats system - by Stigg - 18.10.2011, 17:49

Forum Jump:


Users browsing this thread: 4 Guest(s)