Quote:
Originally Posted by Andy McKinley
Quote:
Originally Posted by Christopher.
Code:
new Float:PlayerHealth, Float:PlayerArmour, IP[20];
GetPlayerHealth(idplayer, PlayerHealth);
GetPlayerArmour(idplayer, PlayerArmour);
GetPlayerIp(idplayer, IP, sizeof(IP));
format(string, sizeof(string), "%s's Stats: Kills: %d | Deaths: %d | Ratio: %0.2f | Money: $%d | Health: | Armour: | IP: ",playername,pInfo[idplayer][pKills], pInfo[idplayer][pDeaths], pInfo[idplayer][pKills], pInfo[idplayer][pDeaths],GetPlayerMoney(idplayer),PlayerHealth, PlayerArmour,IP);
You're code was kinda messed up and i am not sure if those variables are correct but that should compile now.
|
Hmmm... This works (no errors).
But the updated stuff (health, armour, IP) are not showing in-game when I type ''/stats''.
|
Cause you just left Health to nothing
Put:
Code:
Health: %f | Armour: %f | IP: %s