What's wrong with this code?
#1

This code does not display the MAX SCORERS properly

pawn Код:
forward checkplayerscore();
public checkplayerscore(){
new /*strx[256],*/string[456],string2[456],tname[256],count;
for(new p;p<MAX_PLAYERS;p++){
if(IsPlayerConnected(p)){
GetPlayerName(p,"tname",sizeof(tname));
string2 = string;
//format(strx,sizeof(strx),"%s with %d Score" ,tname,GetPlayerScore(p));
if(GetPlayerScore(p) < count){ //see
format(string ,sizeof(string),"%s\n%s %d Score",string2,tname,GetPlayerScore(p));
}
else{
count = GetPlayerScore(p);
format(string ,sizeof(string),"%s %d Score\n%s", tname,GetPlayerScore(p),string2);
}
}
}
for(new p2;p2<MAX_PLAYERS;p2++){
ShowPlayerDialog(p2, 706, DIALOG_STYLE_MSGBOX, "HIGHEST SCORE", string, "OK", "ClOSE");
}
}
Reply


Messages In This Thread
What's wrong with this code? - by Medal Of Honor team - 09.03.2011, 15:07
Re: What's wrong with this code? - by Johnson_boy - 09.03.2011, 15:27
Re: What's wrong with this code? - by Medal Of Honor team - 09.03.2011, 16:02
Re: What's wrong with this code? - by Mean - 09.03.2011, 16:12
Re: What's wrong with this code? - by Medal Of Honor team - 09.03.2011, 16:15
Re: What's wrong with this code? - by Medal Of Honor team - 10.03.2011, 11:39

Forum Jump:


Users browsing this thread: 1 Guest(s)