18.10.2011, 17:32
I added this:
I get this warning:
And I tried the cmd, it didnt show anythingg
Код:
#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; }
Код:
C:\Users\Chaccour\Desktop\CS\filterscripts\savings.pwn(80) : warning 203: symbol is never used: "params"