05.04.2012, 03:53
pawn Код:
{
new Text:newtext[255], scoretotal, killscore ,deathscore ,ratioscore ,file[128];
format(file,sizeof(file),"/********/Accounts/%s.sav",udb_encode(PlayerName2(playerid)));
scoretotal = GetPlayerScore(playerid);
killscore = dini_int(file, "Kills");//error 006: must be assigned to an array
deathscore = dini_int(file, "Deaths");//error 006: must be assigned to an array
ratioscore = killscore / deathscore;
format(newtext,sizeof(newtext), "~Y~Score: ~W~%d ~R~Deaths: ~W~%d ~P~Kills: ~W~%d ~G~Ratio: ~W~%d",scoretotal, deathscore, killscore ,ratioscore);
TextDrawSetString(Textdraw, newtext);
TextDrawShowForPlayer(playerid, Textdraw);
return 1;
}