09.02.2012, 18:40
Hi guys.
I'm building a GameMode, After i built the command /stats [Code in the buttom],
And typed it in the game, I get the "SERVER: Unknown command" error.
This is the Command:
pawn Код:
if(strcmp(cmd, "/stats", true) == 0)
{
new Title[128], Line1[128];
new KillsP = PlayerInfo[playerid][Kills];
new DeathsP = PlayerInfo[playerid][Deaths];
format(Title, sizeof(Title), "{FF9900}--------------- Stats({33CCCC}%s{FF9900}) ---------------", GetName(playerid));
format(Line1, sizeof(Line1), "{F0F8FF}Kills: %i {FFFFFF}| {F0F8FF}Deaths: %i {FFFFFF}| {F0F8FF}Kills/Death Ratio: %i {FFFFFF}| {F0F8FF}Skin: %i", KillsP, DeathsP, KillsP/DeathsP, PlayerInfo[playerid][Skin]);
SendClientMessage(playerid, White, Title);
SendClientMessage(playerid, White, Line1);
return 1;
}
Please help, InferNus`