30.09.2013, 18:50
Quote:
You wrote legit code it will compile but it doesn't do what your expecting. I could write it but then you wouldn't learn anything at least give it a shot and if you have problems post your code and I'll tell you what you did wrong.
One quick thing... pawn Код:
pawn Код:
|
Код:
new seconds = gettime() - pInfo[playerid][ConnectedTime] + pInfo[playerid][TotalSecs]; new str1[512]; strcat(str1, "{ffd700}%s (ID:%d)\n\n", pName, playerid); <<-----error 035: argument type mismatch (argument 3) strcat(str1, "%sScore: %d\n", GetPlayerScore(playerid)); strcat(str1, "%sMoney: $%d\n", GetPlayerMoney(playerid)); strcat(str1, "%sKills: %d\n", pInfo[playerid][Kills]); strcat(str1, "%sDeaths: %d\n", pInfo[playerid][Deaths]); strcat(str1, "%sRatio: %0.2f\n", Float:pInfo[playerid][Kills]/Float:pInfo[playerid][Deaths]); <<------warning 213: tag mismatch strcat(str1, "%sTotal Time Logged in: %s\n", ConvertTime(seconds,m,h,d)); <<------error 035: argument type mismatch (argument 3) return ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"Player Stats",Jstring,"Close",""); }