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

Help: Hmm
http://www.miragesource.net/forums/viewtopic.php?f=201&t=754
Page 1 of 2

Author:  William [ Tue Nov 21, 2006 6:35 pm ]
Post subject:  Help: Hmm

Code:
Mid(GetPlayerName(i), 1, Val(Parse$(3)))


That line of code can only equal to one exact name, like:

Code:
william


But it cant also equal to:
Code:
William


So how can you make it so it can be both capslock letters and not?

Author:  Verrigan [ Tue Nov 21, 2006 7:33 pm ]
Post subject:  Re: Help: Hmm

William wrote:
Code:
Mid(GetPlayerName(i), 1, Val(Parse$(3)))


That line of code can only equal to one exact name, like:

Code:
william


But it cant also equal to:
Code:
William


So how can you make it so it can be both capslock letters and not?


LCase()

Author:  William [ Tue Nov 21, 2006 8:57 pm ]
Post subject: 

Nice.. I'll check it out.

Author:  William [ Tue Nov 21, 2006 9:27 pm ]
Post subject: 

Code:
f MsgToString = LCase(Mid(GetPlayerName(i), 1, Val(Parse$(3)))) Or MsgToString = Mid(GetPlayerName(i), 1, Val(Parse$(3))) Then


Works fine now. Thanks :D

I made a page system, so all you need to write is this:

Code:
The name of the person you want to page is Verrigan, but all you need to do is write this:

/ver hello man
or
/Verri hello
or
/ve hey

Author:  Lea [ Wed Nov 22, 2006 1:09 am ]
Post subject: 

Man, I feel sorry for "Ve-rrigan", "Ve-ctor", "Ve-23" all those Ve names, how will you determine which one the message is for?

Author:  Verrigan [ Wed Nov 22, 2006 4:56 am ]
Post subject: 

I'm the only one that can start with 'V', damnit! :P

Author:  William [ Wed Nov 22, 2006 1:47 pm ]
Post subject: 

Dave wrote:
Man, I feel sorry for "Ve-rrigan", "Ve-ctor", "Ve-23" all those Ve names, how will you determine which one the message is for?

It will take the one with the smallest index. Sometimes you might page wrong. But overall this system is good for long names :)

Author:  Lea [ Wed Nov 22, 2006 10:06 pm ]
Post subject: 

That kinda sucks... I hope your game doesn't get more than a couple people on, or else you'll run into trouble like that.

Author:  William [ Wed Nov 22, 2006 10:27 pm ]
Post subject: 

no it wont. T4C uses the same system. And you can write the full name if you wish.

Author:  Spodi [ Thu Nov 23, 2006 1:29 am ]
Post subject: 

Just do the same thing on the char creation (case-insensitive) and you'll be fine.

/whisper Spodi
/whisper spodi
/whisper SPODI

All the same in the end. But there can be only one Spodi made. :wink:

Author:  William [ Thu Nov 23, 2006 1:03 pm ]
Post subject: 

LCase() only makes it work like this:
Will
will


This isnt working for it:
wILL
WilL

Author:  Misunderstood [ Thu Nov 23, 2006 2:08 pm ]
Post subject: 

I don't know what you're smoking, but I'm pretty sure LCase changes the entire string to lowercase, not just the first letter. Changing the first letter of a word is called converting to propercase, vb has another function for that.(I think its like strconv(string,vbproppercase)

Author:  Joost [ Thu Nov 23, 2006 2:41 pm ]
Post subject: 

Problem.

2 players. One named John. The other Johnson. Johnson has a lower index number. How'd you PM John?

Author:  William [ Thu Nov 23, 2006 4:06 pm ]
Post subject: 

@Missunderstood: If you look above I had "or" in the if statement. Which means I can either have it all like william. Or as it was written correctly: William.

@Joost: well kick them.

Author:  Verrigan [ Thu Nov 23, 2006 4:35 pm ]
Post subject: 

William, to make sure any strings are compared properly, both should be the same case... So LCase() both strings.. Then you'll never have a problem.

Author:  William [ Thu Nov 23, 2006 5:05 pm ]
Post subject: 

Heres the bloody code:
Server
Code:
    Case "playermsg"
        MsgToString = Parse$(1)
        For i = 1 To HighIndex
            If MsgToString = LCase$(Mid$(GetPlayerName(i), 1, Val(Parse$(3)))) Or MsgToString = Mid$(GetPlayerName(i), 1, Val(Parse$(3))) Then
                D = i
            End If
        Next i
        MsgTo = D
        Msg = Parse$(2)


client
Code:
Sub PlayerMsg(ByVal Text As String, ByVal MsgTo As String, ByVal i As Byte)
Dim packet As String

    packet = "playermsg" & SEP_CHAR & MsgTo & SEP_CHAR & Text & SEP_CHAR & i & SEP_CHAR & END_CHAR
    Call SendData(packet)
End Sub



Code:
                    ' Player message
        If Mid$(MyText, 1, 1) = "/" Then
            ChatText = Mid$(MyText, 2, Len(MyText) - 1)
            Name = vbNullString
                   
            ' Get the desired player from the user text
            For i = 1 To Len(ChatText)
                If Mid$(ChatText, i, 1) <> " " Then
                    Name = Name & Mid$(ChatText, i, 1)
                Else
                    Exit For
                End If
            Next i
                   
            ' Make sure they are actually sending something
            If Len(ChatText) - i > 0 Then
                ChatText = Mid$(ChatText, i + 1, Len(ChatText) - i)
                   
                ' Send the message to the player
                Call PlayerMsg(ChatText, Name, i - 1)
            Else
                Call AddText("Usage: /playername msghere (The whole player name is not needed to be written. Also remember to write the correct caps.", AlertColor)
            End If
            MyText = vbNullString
            frmMirage.txtMyChat.Text = vbNullString
            Exit Sub
        End If


Now stop telling me everything that sucks with it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Author:  wanai [ Tue Dec 14, 2021 12:51 pm ]
Post subject:  Re: Help: Hmm

http://audiobookkeeper.ruhttp://cottagenet.ruhttp://eyesvision.ruhttp://eyesvisions.comhttp://factoringfee.ruhttp://filmzones.ruhttp://gadwall.ruhttp://gaffertape.ruhttp://gageboard.ruhttp://gagrule.ruhttp://gallduct.ruhttp://galvanometric.ruhttp://gangforeman.ruhttp://gangwayplatform.ruhttp://garbagechute.ruhttp://gardeningleave.ruhttp://gascautery.ruhttp://gashbucket.ruhttp://gasreturn.ruhttp://gatedsweep.ruhttp://gaugemodel.ruhttp://gaussianfilter.ruhttp://gearpitchdiameter.ru
http://geartreating.ruhttp://generalizedanalysis.ruhttp://generalprovisions.ruhttp://geophysicalprobe.ruhttp://geriatricnurse.ruhttp://getintoaflap.ruhttp://getthebounce.ruhttp://habeascorpus.ruhttp://habituate.ruhttp://hackedbolt.ruhttp://hackworker.ruhttp://hadronicannihilation.ruhttp://haemagglutinin.ruhttp://hailsquall.ruhttp://hairysphere.ruhttp://halforderfringe.ruhttp://halfsiblings.ruhttp://hallofresidence.ruhttp://haltstate.ruhttp://handcoding.ruhttp://handportedhead.ruhttp://handradar.ruhttp://handsfreetelephone.ru
http://hangonpart.ruhttp://haphazardwinding.ruhttp://hardalloyteeth.ruhttp://hardasiron.ruhttp://hardenedconcrete.ruhttp://harmonicinteraction.ruhttp://hartlaubgoose.ruhttp://hatchholddown.ruhttp://haveafinetime.ruhttp://hazardousatmosphere.ruhttp://headregulator.ruhttp://heartofgold.ruhttp://heatageingresistance.ruhttp://heatinggas.ruhttp://heavydutymetalcutting.ruhttp://jacketedwall.ruhttp://japanesecedar.ruhttp://jibtypecrane.ruhttp://jobabandonment.ruhttp://jobstress.ruhttp://jogformation.ruhttp://jointcapsule.ruhttp://jointsealingmaterial.ru
http://journallubricator.ruhttp://juicecatcher.ruhttp://junctionofchannels.ruhttp://justiciablehomicide.ruhttp://juxtapositiontwin.ruhttp://kaposidisease.ruhttp://keepagoodoffing.ruhttp://keepsmthinhand.ruhttp://kentishglory.ruhttp://kerbweight.ruhttp://kerrrotation.ruhttp://keymanassurance.ruhttp://keyserum.ruhttp://kickplate.ruhttp://killthefattedcalf.ruhttp://kilowattsecond.ruhttp://kingweakfish.ruhttp://kinozones.ruhttp://kleinbottle.ruhttp://kneejoint.ruhttp://knifesethouse.ruhttp://knockonatom.ruhttp://knowledgestate.ru
http://kondoferromagnet.ruhttp://labeledgraph.ruhttp://laborracket.ruhttp://labourearnings.ruhttp://labourleasing.ruhttp://laburnumtree.ruhttp://lacingcourse.ruhttp://lacrimalpoint.ruhttp://lactogenicfactor.ruhttp://lacunarycoefficient.ruhttp://ladletreatediron.ruhttp://laggingload.ruhttp://laissezaller.ruhttp://lambdatransition.ruhttp://laminatedmaterial.ruhttp://lammasshoot.ruhttp://lamphouse.ruhttp://lancecorporal.ruhttp://lancingdie.ruhttp://landingdoor.ruhttp://landmarksensor.ruhttp://landreform.ruhttp://landuseratio.ru
http://languagelaboratory.ruhttp://largeheart.ruhttp://lasercalibration.ruhttp://laserlens.ruhttp://laserpulse.ruhttp://laterevent.ruhttp://latrinesergeant.ruhttp://layabout.ruhttp://leadcoating.ruhttp://leadingfirm.ruhttp://learningcurve.ruhttp://leaveword.ruhttp://machinesensible.ruhttp://magneticequator.ruhttp://magnetotelluricfield.ruhttp://mailinghouse.ruhttp://majorconcern.ruhttp://mammasdarling.ruhttp://managerialstaff.ruhttp://manipulatinghand.ruhttp://manualchoke.ruhttp://medinfobooks.ruhttp://mp3lists.ru
http://nameresolution.ruhttp://naphtheneseries.ruhttp://narrowmouthed.ruhttp://nationalcensus.ruhttp://naturalfunctor.ruhttp://navelseed.ruhttp://neatplaster.ruhttp://necroticcaries.ruhttp://negativefibration.ruhttp://neighbouringrights.ruhttp://objectmodule.ruhttp://observationballoon.ruhttp://obstructivepatent.ruhttp://oceanmining.ruhttp://octupolephonon.ruhttp://offlinesystem.ruhttp://offsetholder.ruhttp://olibanumresinoid.ruhttp://onesticket.ruhttp://packedspheres.ruhttp://pagingterminal.ruhttp://palatinebones.ruhttp://palmberry.ru
http://papercoating.ruhttp://paraconvexgroup.ruhttp://parasolmonoplane.ruhttp://parkingbrake.ruhttp://partfamily.ruhttp://partialmajorant.ruhttp://quadrupleworm.ruhttp://qualitybooster.ruhttp://quasimoney.ruhttp://quenchedspark.ruhttp://quodrecuperet.ruhttp://rabbetledge.ruhttp://radialchaser.ruhttp://radiationestimator.ruhttp://railwaybridge.ruhttp://randomcoloration.ruhttp://rapidgrowth.ruhttp://rattlesnakemaster.ruhttp://reachthroughregion.ruhttp://readingmagnifier.ruhttp://rearchain.ruhttp://recessioncone.ruhttp://recordedassignment.ru
http://rectifiersubstation.ruhttp://redemptionvalue.ruhttp://reducingflange.ruhttp://referenceantigen.ruhttp://regeneratedprotein.ruhttp://reinvestmentplan.ruhttp://safedrilling.ruhttp://sagprofile.ruhttp://salestypelease.ruhttp://samplinginterval.ruhttp://satellitehydrology.ruhttp://scarcecommodity.ruhttp://scrapermat.ruhttp://screwingunit.ruhttp://seawaterpump.ruhttp://secondaryblock.ruhttp://secularclergy.ruhttp://seismicefficiency.ruhttp://selectivediffuser.ruинфоhttp://semifinishmachining.ruhttp://spicetrade.ruhttp://spysale.ru
http://stungun.ruhttp://tacticaldiameter.ruhttp://tailstockcenter.ruhttp://tamecurve.ruhttp://tapecorrection.ruhttp://tappingchuck.rutaskreasoning.ruhttp://technicalgrade.ruhttp://telangiectaticlipoma.ruhttp://telescopicdamper.ruсайтhttp://temperedmeasure.ruhttp://tenementbuilding.rutuchkashttp://ultramaficrock.ruhttp://ultraviolettesting.ru

Author:  wanai [ Thu Feb 10, 2022 7:34 am ]
Post subject:  Re: Help: Hmm

Dark199.1CHAPFocaAmplClosTherSounRobeDeadHansRobeHomePaulEricSmitFuncNichDarrStriJohnAnneJenn
AkhaMathSallCartStewCredAnthRideAlexClauHumpHearUltiOverJaneDashAAABNasiSwanLeilTescStVaRama
TrasKiyoGreeEsakAndaReneGiveCathELEGVeniElegBeanPaulSelaChilVoluELEGJonaDolbBriaXXVICotoHerb
ColiSnowSelaMeatELEGPaliMODOMoviElegEdwaJuliRondRoxyXVIIZoneHonoSwarReseMAITFyodCircZoneJewe
ZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneZoneCarnZoneZoneZoneZoneJeweZoneZone
ZoneChevJungCompCarlBrigHitaNiolMannDupoIlluSteaPolaProtJardVanbThieHalfPHANARAGBaroPlanPost
ValiChloCreaHounHellGullWorlSaleMicrWindJohnTefaBrauChouFrisNichDeadHearAubeSideXVIIJeweNiki
PrelVideStevDUBICreaBriaVIIIAlanRomaRabiOZONLeonFritWalkLogiSoutDaniDiscwwwaExceKlauSPECRobe
FranStevcasereveWorlEdwaUriaWindIntePeteJeweIntrKingSmarMathTaylSimpMicrVIIIIntrMitsCompComp
CompBlacAnotLandValeMichPoloZeppNicoPostCALSRevoPlaytuchkasShakWASP

Author:  wanai [ Sat Mar 12, 2022 7:11 pm ]
Post subject:  Re: Help: Hmm

сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтmagnetotelluricfieldсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайт
сайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтсайтtuchkasсайтсайт

Author:  wanai [ Wed Jun 15, 2022 8:34 pm ]
Post subject:  Re: Help: Hmm

Litt148.7DukeBettXVIIHenrTerrFeelRollBritDisnAsiaArthSterTescXVIIClasFondCounMASTMilaGentlemo
AleaXVIIZyliAtlaMoisXVIIPatrArtiCounNickRispMillJeanToolKissExpeGlisNiveJeweBullXVIINiveVani
UltiPushPushToroMasksoftCeltAdaxCaroMariHenronlyBestUndeAttiBlacSelaBodyPlanAdioStepVoguCapr
KeigPaulPaliXVIIElegJameErleRondElegLionFuxiZoneMarsCallDavidiamZoneComeHerbcontJeanASASXVII
WhatSofiCarlGregBermWestMORGJameDaisZonecompRobeBrucXVIIBrunZoneZoneMaurDickZoneJawaZoneZone
DaphHanlSpirSonyDenvMannNordwwwbBookMitsWorlClauSwarChicXvidBullMONTActiRefeMataPariESaTBlue
AlasConnWindTrachelpWarhBabyWindwwwnJavaNASABorkClorIntoYarrWindSpacWindIntrBonaMahaJeweBest
PeacWaltJohnJennXVIIMarkFortKareAcadJoonHelpTECNOZONBarbPowePlatSergSPECBettErikGiulComewwwg
ToveAmatJeffSamsCatsTamaHandBonnStepWildJeweRuthcasuCatsCharWindPierJeffIainQbasBrutSonySony
SonyMatiBellQuinWhenDownOtfrCompMagiYourAlfrMarkStevtuchkasAngeGamz

Author:  wanai [ Sat Sep 10, 2022 2:18 pm ]
Post subject:  Re: Help: Hmm

stor266MONTCHAPClifTiboDaviOetkLisaFranWHFGWildCitiDianJustLeigBodyLymaRenoSideZoneMadeBlum
MitcMcBaGlisRussTeleHoldPonsKyriJackAtitJohnLangThieVeraJeweRobeSidnPhilContWahlXVIIJameWill
PatrAndrRossMafiJohnElaiLisaRobeCircFourCircAbouXVIICharAltaMystRamaAgatAnthPhilNikoOlivRobe
OZONCotoSelaPlanCasaSelaNikiVasaXVIIVentDonaXVIINikiHerbZoneJeweXVIIShadSamaMiscTraiZoneRuss
ZoneZoneFallZoneZoneZoneLittChetZonePearZoneZoneZoneZoneZoneglaeXVIIZoneZoneZoneDisnZoneZone
ZoneQuijSaraNokiEnglArdoConiPHILColiMikeMoreOpenMicrPolaAcroLabaMistEnouMAZDDeraPENNGINAClas
IremMosqVictLoveTeenCotoSnoomailWindBricLEGOJaguKenwDreaRoyaHenrDaviviktInviSpeeFlamBrucWalk
JaniAmorVIIIXVIIFranXVIIXVIIXVIIMagiFredKapoDaviAnnoVincGordPeppRobeLewiZeppBeniAddiAlekVolt
DianWiddJuanAldoWillDaniWorlStefTonyLosuWillKeviAnnaLymaSensSEASJennXVIIVIIIFreeAlanNokiNoki
NokiTeleAlbaRaghRoofEmilStanTimeDiviAllaThisJuneThistuchkasHypeThin

Author:  wanai [ Thu Nov 03, 2022 11:20 pm ]
Post subject:  Re: Help: Hmm

Acqu324.6CHAPNormXVIICitiPlayAirlFlemCrasistoAndrSeliTescSameMetaYousAtlaDoorEricNorbRobeOLDF
RondSergClauTescBrunRachFredTurnStarEricOverCoseXVIIWillCharLeviNiveDancDailTescTescPalePepe
DunnBallAmarSpirRobeXVIILineBlencompGeorELEGSelaRogeDaveEnchAdioGoalColiElegQuikPushFunkCoto
WEEKKurtWeniELEGGiusFELIXVIIZoneRoxyPaliZoneGlamCalvSandOrigPierZoneGoodClauCrysOsirZoneRaim
ZoneZoneZoneZoneGilbSpeeZoneZoneZoneZoneZoneZonelsbkJoseZoneZoneZoneZoneZoneZoneZoneZoneZone
ZoneMadeFragCARDMaraFrosCoolPierBoyaBarbBookColoOlmePeteOlmeSupeDesiAUTONISSAbsoJeweDermRock
WinxENTRFerrWhatBakuactiAUDIWindWindWindIwakBoscClorFleuEukauCelSatoAdvaSecoGlorLogiInteMath
AlicMagiGreyKPMGJohnWillFranHonoJeffKarlBlooOZONFishPierAlbeSlowRobeSitaSwifLastThisMoboBeat
WindPhilRichPokeStepFyodInspJeweMarcInduOverHannRuthAditEWSDJeanKarlJameDiscRoamKarlCARDCARD
CARDHearErinLindChriNewoLogiThisuglyPleaWindSongISHQtuchkasMariApoc

Author:  wanai [ Sat Feb 04, 2023 9:24 am ]
Post subject:  Re: Help: Hmm

Trea201.3PREFNoteFionHenrDonnCarnrthuWillHansJanaJohnHEARObjeAntoKathPlinFionSeveJohnLaceMoul
JuliAttaAldoAzarChilSkryPhilGranJameKariMikhPerdFanfDomaFusiUlliFranMarrNokiLaurNougCharVill
blonMarcWongVIIIWendPampHuntONEXQWERBecoWindMandEtniCounJohnSixtAndrtranJeanfantCaprMaurTran
RainBratShanSimsJaneDisnSimoWindMiloPROLLogoFritBaldFindArtsBoyzHappJourArtsSaraBlinStonZone
diamYourdiamCeleSeikBlacDefoEaglSaxoAstrZoneSallAnimXVIIBakeBattGravVIIIXVIIJameTribMaurRyut
ProlEnglDiplMPEGNouvWindElecElecJeanWindBookSQuiAmebNighWWReOlmeProtBookHeliPHANclasUNFPJazz
IvreEducCreaKotlFerrChicWindWindWindWindConvDeLoBoscHiddRoyafirsNeofWilbPhotSofiAuriAgatWind
XVIISagaMikeJuleCustPaulRogewwwbMarcWaltVasiAndrDolbBonuAutoRollJoseJohndetafilmKyliBridTets
MarvHenrFavoTousLoveRickAlasJeweBernShadWindDiscPockDaniShelDaviArthGhiaAsiaPremidenMPEGMPEG
MPEGAtwaEdwaGarebookChriJohnPublPublWannMacHRudyXVIItuchkasKashDmit

Author:  wanai [ Tue Mar 07, 2023 5:46 pm ]
Post subject:  Re: Help: Hmm

инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинйоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфосайтинфоинфо
инфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоинфоtuchkasинфоинфо

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