30.12.2010, 20:20
(
Последний раз редактировалось blackwave; 30.12.2010 в 20:20.
Причина: ;
)
Rofl, seem you're "thoughtless"
Put format | instead "foramt"...
Try this underneath
Код:
error 017: undefined symbol "foramt"
Код:
error 001: expected token: "#endif", but found "-end of file-"
pawn Код:
#if defined USE_STATS
dcmd_stats(playerid,params[]) {
new string[128], string2[128], string3[128], string4[128], string5[128], string6[128], string7[128], pDeaths, player1, h, m, s;
if(!strlen(params)) player1 = playerid;
else player1 = strval(params);
if(IsPlayerConnected(player1)) {
TotalGameTime(player1, h, m, s);
if(PlayerInfo[player1][Deaths] == 0) pDeaths = 1; else pDeaths = PlayerInfo[player1][Deaths];
format(string, sizeof(string), "> Username: %s", PlayerName2(player1));
format (string2, sizeof(string2), "> Kills: %d", PlayerInfo[player1][Kills]);
format (string3, sizeof(string3), "> Deaths: %d", PlayerInfo[player1][Deaths]);
format (string4, sizeof(string4), "> Ratio: %0.2f", Float:PlayerInfo[player1][Kills]/Float:pDeaths);
format (string5, sizeof(string5), "> Money: %d", GetPlayerMoney(player1));
format (string6, sizeof(string6), "> Score: %d", GetPlayerScore(player1));
foramt (string7, sizeof(string7), "> Time: %d hours %d minutes %d seconds", h, m, s);
return SendClientMessage(playerid, green, string);
return SendClientMessage(playerid, green, string2);
return SendClientMessage(playerid, green, string3);
return SendClientMessage(playerid, green, string4);
return SendClientMessage(playerid, green, string5);
return SendClientMessage(playerid, green, string6);
return SendClientMessage(playerid, green, string7);
} else return SendClientMessage(playerid, red, "Player Not Connected!");
#endif
}