Thread: Help
View Single Post
  #1  
Old 01-16-2007, 06:10 AM
Rapidwolve Rapidwolve is offline
Registered User
Join Date: Jul 2006
Posts: 1,241
Rapidwolve is an unknown quantity at this point
Post Help

I just recently scripted a mailing system and I am now scripting the part that states who has the most letters sent.

PHP Code:
for (iallplayers){
temp.player findPlayer(i);
this.sentmail.(@temp.player) = temp.player.clientr.sentmailamt;

I get it to output in the flags of the npc 'Mail':
PHP Code:
sentmail.MandangoP2P=19
sentmail
.rapidwolve=2
sentmail
.Spike5656=
I then use a function 'calcMostSent' to determine who sent the most I am stumped at this part, I have no clue what to do. I've tried:
PHP Code:
for (jthis.sentmail.getdynamicvarnames()){
if (
this.sentmail.(@j) > this.sentmail(@j[j+j-1]){
this.mostsent this.sentmail.(@j);
this.mostsentacc j;
}

Don't even ask why I did that, because I was just guessing X_x. I tried alot of other ways but it hasn't worked. Can somebody help me?

Last edited by Rapidwolve; 01-16-2007 at 06:20 AM..
Reply With Quote