13.02.2012, 00:50
Hi I'm getting an unknown command error
I made this game mode early 2010 and I'm just reopening it. When I type /rank I get the server unknown command message. It used to work in 2010 idk why it doesn't now. Any help would be great.
I made this game mode early 2010 and I'm just reopening it. When I type /rank I get the server unknown command message. It used to work in 2010 idk why it doesn't now. Any help would be great.
Код:
if (strcmp("/rank", cmdtext, true, 10) == 0) { new string[128]; new PlayerDeaths = PlayerInfo[playerid][Deaths]; new PlayerKills = PlayerInfo[playerid][Kills]; new PlayerRanks = PlayerInfo[playerid][Rank]; new PlayerPoints = PlayerInfo[playerid][Points]; new KDR = PlayerKills * 100 / PlayerDeaths / 100; new name[MAX_PLAYER_NAME]; GetPlayerName(playerid, name, sizeof(name)); format(string, sizeof(string), "-%s's Rank-", name); SendClientMessageToAll(COLOR_GREEN, string); format(string, sizeof(string), "Rank: %d Points: %d Kills: %d Deaths: %d KDR: %d", PlayerRanks, PlayerPoints, PlayerKills, PlayerDeaths, KDR); SendClientMessageToAll(COLOR_GREEN, string); return 1; }