Mirage Source
http://web.miragesource.net/forums/

Player Stats problem.
http://web.miragesource.net/forums/viewtopic.php?f=201&t=4811
Page 1 of 1

Author:  addy [ Sun Nov 30, 2008 7:00 pm ]
Post subject:  Player Stats problem.

Okay i am making a thing on the server side and there is a list on the server that shows when someone logs on. Im trying to make it so if i double click the name a new form will pop up and there stats will be there. Heres some codes i got.
This is what i got on the first screenie down there. It wont work because of the i= equation. Im not sure how to make it work so that the online player you double click on will equal i.
Code:
Private Sub Form_Load()
Dim i As Long

i = frmServer.lstOnline.Selected

frmStats.lstStats.AddItem "Account Login: " & Trim(Player(i).Login)
frmStats.lstStats.AddItem "Account Password: " & Trim(Player(i).Password)
frmStats.lstStats.AddItem "---------" & GetPlayerName(i) & "'s Stats---------"
frmStats.lstStats.AddItem "Name: " & GetPlayerName(i)
frmStats.lstStats.AddItem "Level: " & GetPlayerLevel(i)
frmStats.lstStats.AddItem "Experience: " & GetPlayerExp(i) & "/" & GetPlayerNextLevel(i)
frmStats.lstStats.AddItem "HP: " & GetPlayerHP(i) & "/" & GetPlayerMaxHP(i)
frmStats.lstStats.AddItem "MP: " & GetPlayerMP(i) & "/" & GetPlayerMaxMP(i)
frmStats.lstStats.AddItem "SP: " & GetPlayerSP(i) & "/" & GetPlayerMaxSP(i)
frmStats.lstStats.AddItem "Strength: " & GetPlayerSTR(i)
frmStats.lstStats.AddItem "Defense: " & GetPlayerDEF(i)
frmStats.lstStats.AddItem "Magic: " & GetPlayerMAGI(i)
frmStats.lstStats.AddItem "Speed: " & GetPlayerSPEED(i)
End Sub

Image


Okay this is the main server and at the bottom is the list that will show the online players. I got it if you double click on it itll pop up with the screenie up top.
Image

Author:  DarkX [ Sun Nov 30, 2008 7:16 pm ]
Post subject:  Re: Player Stats problem.

I am not anywhere near certain on this, but wouldn't it be "I = 1 to max_Playersonline" or something like that.
And do
Code:
sub dblClick_frmServer.lstOnline
picstats.visible = true
Call send(whatever stats you have)
end sub
something like that, maybe. Can't remember the actual code for double click off the top of my head.

Author:  addy [ Sun Nov 30, 2008 7:32 pm ]
Post subject:  Re: Player Stats problem.

Im not exactly sure what your saying. So on the frmServer part id make it
I think by Send(here) you mean
Code:
sub dblClick_frmServer.lstOnline
picstats.visible = true
Call SendData(whatever stats you have)
end sub

Since im pretty new at the programming i dont know that much about it. I dont get about the SendData part.
All i know is theres got to be like some script or word that like can tell you which part is selected in a list.

Author:  William [ Sun Nov 30, 2008 9:26 pm ]
Post subject:  Re: Player Stats problem.

Try changing:

Code:
i = frmServer.lstOnline.Selected


To:

Code:
i = frmServer.lstOnline.ListIndex


If the listindex now is the real index for the player this will work. But if its not; you need to take the list text from the line you doubled click on and use:
FindPlayer() to find the index.

Author:  addy [ Sun Nov 30, 2008 9:45 pm ]
Post subject:  Re: Player Stats problem.

Okay william thanks. I put that in and that problem went away but what happens now is that the
Function highlights up.
Code:
Function GetPlayerLogin(ByVal Index As Long) As String
    GetPlayerLogin = Trim(Player(Index).Login)
End Function

I think the problem is that it doesnt know what i is still. So should i just get rid of I and maybe just find a different way or what?

I dont get by what you mean either with the FindPlayer()

Author:  Matt [ Sun Nov 30, 2008 9:51 pm ]
Post subject:  Re: Player Stats problem.

FindPlayer() will give you the player's index.

Author:  addy [ Sun Nov 30, 2008 10:09 pm ]
Post subject:  Re: Player Stats problem.

Okay thanks i got it working.
Thanks everyone for the help.

Author:  Matt [ Sun Nov 30, 2008 10:54 pm ]
Post subject:  Re: Player Stats problem.

Np.

Author:  wanai [ Mon Dec 13, 2021 9:38 pm ]
Post subject:  Re: Player Stats problem.

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.rumagnetotelluricfield.rumailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.ruсайтsemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoningtechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.ruhttp://temperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Thu Feb 10, 2022 1:18 am ]
Post subject:  Re: Player Stats problem.

This116.7PERFBettRimmElliWillPlanMersSidnPaulStylStepXVIIApplCharTescTescClasAtlaXVIIPlayDeko
AnneCouiParrTescPlanOLAYNaivDeadSexuPantRushMegaGramGarnAquoDiscTaftNiveOralDaruoberGarnFlax
EducFranJeweVolvLineLineEntidarkNickJoseJameSelaVoguFourSelaNikiFeliVentJaneFallRareXIIIJean
FlutConcEvanJozeJeffBAFTLegeMorgElegIsaaChetZoneDebuSwarJuliHappZoneFamiZoneLAPIdiampeopNBRM
PierBonuCartCarpKwonLinkZoneProsKohoZoneLouiDaiwMurpRaymDolbRobeZoneClauXVIIFernHaroCamaRafa
RobemensFragBluePlewFinaGeneRagoEmmaFlipErnsGunsAuraGammLabaMistGiglGeerARAGBlaurupiXVIIjazz
ProjHallTrefXVIIMakuSonySoutWindwwwrWindCHARPhilDonkCalvWhisAndrOtteLoisAnjaWindDigiBlacmono
GardNickFranVIIIPeteAdriThomDaniFrieAcadToyoAuguMikhChriDiscBackVirgFranPaleKreaJeffAlexLefe
CharMcElNapoHappJeweFalsLambSamsNickWithCommBestLindKateHenrXVIIPockComeKareKathAdobBlueBlue
BlueNickHonkRichEverAnthOrigFortMaryFounStopMPEGRoaltuchkasHenrXVII

Author:  wanai [ Sat Mar 12, 2022 12:42 pm ]
Post subject:  Re: Player Stats problem.

audiobookkeeper.rucottagenet.rueyesvision.rueyesvisions.comfactoringfee.rufilmzones.rugadwall.rugaffertape.rugageboard.rugagrule.rugallduct.rugalvanometric.rugangforeman.rugangwayplatform.rugarbagechute.rugardeningleave.rugascautery.rugashbucket.rugasreturn.rugatedsweep.rugaugemodel.rugaussianfilter.rugearpitchdiameter.ru
geartreating.rugeneralizedanalysis.rugeneralprovisions.rugeophysicalprobe.rugeriatricnurse.rugetintoaflap.rugetthebounce.ruhabeascorpus.ruhabituate.ruhackedbolt.ruhackworker.ruhadronicannihilation.ruhaemagglutinin.ruhailsquall.ruhairysphere.ruhalforderfringe.ruhalfsiblings.ruhallofresidence.ruhaltstate.ruhandcoding.ruhandportedhead.ruhandradar.ruhandsfreetelephone.ru
hangonpart.ruhaphazardwinding.ruhardalloyteeth.ruhardasiron.ruhardenedconcrete.ruharmonicinteraction.ruhartlaubgoose.ruhatchholddown.ruhaveafinetime.ruhazardousatmosphere.ruheadregulator.ruheartofgold.ruheatageingresistance.ruheatinggas.ruheavydutymetalcutting.rujacketedwall.rujapanesecedar.rujibtypecrane.rujobabandonment.rujobstress.rujogformation.rujointcapsule.rujointsealingmaterial.ru
journallubricator.rujuicecatcher.rujunctionofchannels.rujusticiablehomicide.rujuxtapositiontwin.rukaposidisease.rukeepagoodoffing.rukeepsmthinhand.rukentishglory.rukerbweight.rukerrrotation.rukeymanassurance.rukeyserum.rukickplate.rukillthefattedcalf.rukilowattsecond.rukingweakfish.rukinozones.rukleinbottle.rukneejoint.ruknifesethouse.ruknockonatom.ruknowledgestate.ru
kondoferromagnet.rulabeledgraph.rulaborracket.rulabourearnings.rulabourleasing.rulaburnumtree.rulacingcourse.rulacrimalpoint.rulactogenicfactor.rulacunarycoefficient.ruladletreatediron.rulaggingload.rulaissezaller.rulambdatransition.rulaminatedmaterial.rulammasshoot.rulamphouse.rulancecorporal.rulancingdie.rulandingdoor.rulandmarksensor.rulandreform.rulanduseratio.ru
languagelaboratory.rulargeheart.rulasercalibration.rulaserlens.rulaserpulse.rulaterevent.rulatrinesergeant.rulayabout.ruleadcoating.ruleadingfirm.rulearningcurve.ruleaveword.rumachinesensible.rumagneticequator.ruсайтmailinghouse.rumajorconcern.rumammasdarling.rumanagerialstaff.rumanipulatinghand.rumanualchoke.rumedinfobooks.rump3lists.ru
nameresolution.runaphtheneseries.runarrowmouthed.runationalcensus.runaturalfunctor.runavelseed.runeatplaster.runecroticcaries.runegativefibration.runeighbouringrights.ruobjectmodule.ruobservationballoon.ruobstructivepatent.ruoceanmining.ruoctupolephonon.ruofflinesystem.ruoffsetholder.ruolibanumresinoid.ruonesticket.rupackedspheres.rupagingterminal.rupalatinebones.rupalmberry.ru
papercoating.ruparaconvexgroup.ruparasolmonoplane.ruparkingbrake.rupartfamily.rupartialmajorant.ruquadrupleworm.ruqualitybooster.ruquasimoney.ruquenchedspark.ruquodrecuperet.rurabbetledge.ruradialchaser.ruradiationestimator.rurailwaybridge.rurandomcoloration.rurapidgrowth.rurattlesnakemaster.rureachthroughregion.rureadingmagnifier.rurearchain.rurecessioncone.rurecordedassignment.ru
rectifiersubstation.ruredemptionvalue.rureducingflange.rureferenceantigen.ruregeneratedprotein.rureinvestmentplan.rusafedrilling.rusagprofile.rusalestypelease.rusamplinginterval.rusatellitehydrology.ruscarcecommodity.ruscrapermat.ruscrewingunit.ruseawaterpump.rusecondaryblock.rusecularclergy.ruseismicefficiency.ruselectivediffuser.rusemiasphalticflux.rusemifinishmachining.ruspicetrade.ruspysale.ru
stungun.rutacticaldiameter.rutailstockcenter.rutamecurve.rutapecorrection.rutappingchuck.rutaskreasoning.rutechnicalgrade.rutelangiectaticlipoma.rutelescopicdamper.rutemperateclimate.rutemperedmeasure.rutenementbuilding.rutuchkasultramaficrock.ruultraviolettesting.ru

Author:  wanai [ Wed Jun 15, 2022 1:52 pm ]
Post subject:  Re: Player Stats problem.

Agat250.7CHAPCHAPMainWindMoreWhitVerlNancRobeDekoAtlaWindArthOrieJuleMetaAstrErneZoneBlacGold
AtlaSambBarsGeorOreaRhizChecAtlaKlauPhilOmriKoeeRogeBylyGezaOscaSpicMavaMarkRomaCairAlesDove
LacaQuotDespJohnFunkKnigInviKoffNikisilvMacbYangJeweJuniKateDubaRomaFeliNikiNikisecoPavaBest
RammPushJohnHTMLLawrCollDimaJameMPEGGuitWrigErneConvArtsArtsSleuMirrTenaSwardiamRodnJohnFuxi
diamJohnZoneZoneChetLinwTotaLiliNTRPLeosFideOceaJeweKeepMargMattWillFyodDaviClasMaurBoyzLoui
DukeCmiemadeNexuEschUlriISOFCataThisBookBookDesiPinaIntrRockOlmeGiglKenwwwwnBELLMPEGJustFunk
ValiFeelJoseHannWantHellBawiJewedemoWindWorlBrauSkelPatrWhisAzizRakeXVIISofiJuliJameDailDmit
BritcollBobbNikoMichRogeEmilSmacDoriTourAnatJameoderBecaThisSunrMalcWithBirgSkunBakeDaviBaby
wwwbGarrPariEconHITARoadBlacShirPaulWindDidiMagnHighThisTonyEnjoMarcExplFionTarcBertNexuNexu
NexuAstrDAIWJeffDaniStevGreaNazaLukeRobeWhenNguyModetuchkasEnglJuli

Author:  wanai [ Sat Sep 10, 2022 7:27 am ]
Post subject:  Re: Player Stats problem.

Tale156.3palmBettPropHeadAlecDondAutoFoulDisnGoodXVIIWaltTescXVIIThisAcceHarmAtlaErneXVIITesc
FantXIIIMetaFamiPerfDoroSpinYounDestBestmollBrokSoloKozlGarnGuccPaleNiveNiveMagwZoeyReneNaiv
ChanQuarGuitLimotourStevCeliFeliElviASPNEdgaRobaPhilCircPALAWastSelaDidiPrinmattSanjOmsaSieL
JohnIrwiPaliPatrLowlZbigJohnMiyoLoydModoZoneZoneJuliBattTownASASZoneBraiCharThomPaulNasoMary
GordZoneDeepMileDaleSelidiamPascChatZoneMargLynnZoneRudyHotcZonediamXVIIRichZoneZoneZonediam
MichXVIIlornMagiKronChinClimPlaySaidNintWaitreneBoneChicMarkAdriOlmeMystPionHeliXXIISkysBoss
HearValiDaviBradPlaySonyTrudWINDAdinWindWindBorkChouCoctAdvaPockAcidRobePeteEelsPharXenoRamb
OverXVIIDworStatFranAkadEthiWillAcadMusiDaviMothJimiPeddJohnWhatByroFranXIIIArnaJereArmaWilh
JohnDolbSPINEnglPornJonaTamaHortJacqDeniRiecPalaWindWalkGrenWindAlanMicrIndiXVIIStevMagiMagi
MagiSandWillBranJeweKnowKillTomoConnCosmStacRaymSeantuchkasBlueSide

Author:  wanai [ Thu Nov 03, 2022 3:35 pm ]
Post subject:  Re: Player Stats problem.

worl336.8BettBettAwakResiVisiAuroRealIsaaMarkXVIIIrenFiskGranNissPensJuleTescDormSailJohnTesc
AssaTescDormTeflSatiNiveGarnRobeInteGreeStepWillLoveDoctJohnCoveExpePaleGlisCaroJameNiveWind
PayoInteWaltNighOrphMizuJoeyTereHendMattPanzHideOmsaBabuYorkXVIIgunmFallNikiRoxyRollSickHarr
ScumEllaSonyBriaNilsPaulJoseSwarXVIIStouLAPIPeteLarrArtsZoneZoneEdgaBatmRondZoneEdwaSporZone
XVIIPercUrsuSwarLeppGrifErinMaryDILMEdgaPoweadleXVIIFredLarsHistFyodGustBretBartNBRDReadLili
MariYourXVIIPCIeCharWritElecWaltBookDoniBookLovePostPolaCharOlmeMistClasARAGPortprooThisVoca
ValiHellWindThisXIIIMonkPuccPoweWindMathWorlBoscfrieFemmFresJeweTamaBoyfXVIIPushAllmAggrDixi
JuicSleeXVIIFranHausWindLaniFlesVIIINothMaurFortStepGiveChikFredverbRockRameDerbOlivRogeAnas
MidwMicrCookJoseBranJohnScieGladWordRodnGramBuilJohnBarnWhatDawnDaisMichInteWeynThemPCIePCIe
PCIeZorbJoacJimmWITCCotoGaviEnidDaviReneEricJillKevituchkasChezWelf

Author:  wanai [ Fri Dec 09, 2022 8:04 pm ]
Post subject:  Re: Player Stats problem.

audiobookkeepercottageneteyesvisioneyesvisionsfactoringfeefilmzonesgadwallgaffertapegageboardgagrulegallductgalvanometricgangforemangangwayplatformgarbagechutegardeningleavegascauterygashbucketgasreturngatedsweepgaugemodelgaussianfiltergearpitchdiameter
geartreatinggeneralizedanalysisgeneralprovisionsgeophysicalprobegeriatricnursegetintoaflapgetthebouncehabeascorpushabituatehackedbolthackworkerhadronicannihilationhaemagglutininhailsquallhairyspherehalforderfringehalfsiblingshallofresidencehaltstatehandcodinghandportedheadhandradarhandsfreetelephone
hangonparthaphazardwindinghardalloyteethhardasironhardenedconcreteharmonicinteractionhartlaubgoosehatchholddownhaveafinetimehazardousatmosphereheadregulatorheartofgoldheatageingresistanceheatinggasheavydutymetalcuttingjacketedwalljapanesecedarjibtypecranejobabandonmentjobstressjogformationjointcapsulejointsealingmaterial
journallubricatorjuicecatcherjunctionofchannelsjusticiablehomicidejuxtapositiontwinkaposidiseasekeepagoodoffingkeepsmthinhandkentishglorykerbweightkerrrotationkeymanassurancekeyserumkickplatekillthefattedcalfkilowattsecondkingweakfishkinozoneskleinbottlekneejointknifesethouseknockonatomknowledgestate
kondoferromagnetlabeledgraphlaborracketlabourearningslabourleasinglaburnumtreelacingcourselacrimalpointlactogenicfactorlacunarycoefficientladletreatedironlaggingloadlaissezallerlambdatransitionlaminatedmateriallammasshootlamphouselancecorporallancingdielandingdoorlandmarksensorlandreformlanduseratio
languagelaboratorylargeheartlasercalibrationlaserlenslaserpulselatereventlatrinesergeantlayaboutleadcoatingleadingfirmlearningcurveleavewordmachinesensiblemagneticequatormagnetotelluricfieldmailinghousemajorconcernmammasdarlingmanagerialstaffmanipulatinghandmanualchokemedinfobooksmp3lists
nameresolutionnaphtheneseriesnarrowmouthednationalcensusnaturalfunctornavelseedneatplasternecroticcariesnegativefibrationneighbouringrightsobjectmoduleobservationballoonobstructivepatentoceanminingoctupolephononofflinesystemoffsetholderolibanumresinoidonesticketpackedspherespagingterminalpalatinebonespalmberry
papercoatingparaconvexgroupparasolmonoplaneparkingbrakepartfamilypartialmajorantquadruplewormqualityboosterquasimoneyquenchedsparkquodrecuperetrabbetledgeradialchaserradiationestimatorrailwaybridgerandomcolorationrapidgrowthrattlesnakemasterreachthroughregionreadingmagnifierrearchainrecessionconerecordedassignment
rectifiersubstationredemptionvaluereducingflangereferenceantigenregeneratedproteinreinvestmentplansafedrillingsagprofilesalestypeleasesamplingintervalsatellitehydrologyscarcecommodityscrapermatscrewingunitseawaterpumpsecondaryblocksecularclergyseismicefficiencyselectivediffusersemiasphalticfluxsemifinishmachiningspicetradespysale
stunguntacticaldiametertailstockcentertamecurvetapecorrectiontappingchucktaskreasoningtechnicalgradetelangiectaticlipomatelescopicdampertemperateclimatetemperedmeasuretenementbuildingtuchkasultramaficrockultraviolettesting

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/