[Aportes indexados] Label de Usuarios Matados

Estado
Cerrado para nuevas respuestas.

DarkThom

Oráculo Lvl 3
[Cliente/Servidor] Label de Usuarios Matados

Vi que muchos pedian este code asique lo hise


En el Cliente en el frmMain Creas un Label Con el Nombre de "LblKills"

Desp Buscas

[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">UserExp = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">10</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">       </li></ol></div>[/vb]

Abajo Ponemos

[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1">frmMain.<span style="color: #66cc66;">LblKills</span>.<span style="color: #66cc66;">Caption</span> = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">11</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li></ol></div>[/vb]

En el Servidor

Buscamos

[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Sub</span> SendUserStatsBox<span style="color: #66cc66;">(</span>ByVal UserIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"EST"</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxHP</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinHP</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxMAN</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinMAN</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxSta</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinSta</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">GLD</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">ELV</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">ELU</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #b1b100;">Exp</span><span style="color: #66cc66;">)</span></li><li style="" class="li2"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></li></ol></div>[/vb]

Y Lo Reemplazamos por



[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"><span style="color: #b1b100;">Sub</span> SendUserStatsBox<span style="color: #66cc66;">(</span>ByVal UserIndex <span style="color: #b1b100;">As</span> <span style="color: #b1b100;">Integer</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">    <span style="color: #b1b100;">Call</span> SendData<span style="color: #66cc66;">(</span>ToIndex, UserIndex, <span style="color: #cc66cc;">0</span>, <span style="color: #ffffff;">"EST"</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxHP</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinHP</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxMAN</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinMAN</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MaxSta</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">MinSta</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">GLD</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">ELV</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">ELU</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #b1b100;">Exp</span> & <span style="color: #ffffff;">","</span> & UserList<span style="color: #66cc66;">(</span>UserIndex<span style="color: #66cc66;">)</span>.<span style="color: #66cc66;">Stats</span>.<span style="color: #66cc66;">UsuariosMatados</span><span style="color: #66cc66;">)</span></li><li style="" class="li2"><span style="color: #b1b100;">End</span> <span style="color: #b1b100;">Sub</span></li></ol></div>[/vb]

Suerte , Se Actualiza con los Stats , Vida Mana , Stamina , Etc
 

matias89

Un newbie de alma jaja
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"> <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"EST"</span>                  <span style="color: #808080;">' >>>>> Actualiza Estadisticas de Usuario :: EST</span></li><li style="" class="li1">            </li><li style="" class="li2">            Rdata = <span style="color: #b1b100;">Right</span>$<span style="color: #66cc66;">(</span>Rdata, <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">(</span>Rdata<span style="color: #66cc66;">)</span> - <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMaxHP = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">1</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMinHP = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserMaxMAN = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMinMAN = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">4</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMaxSTA = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">5</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserMinSTA = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">6</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserGLD = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">7</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserLvl = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">8</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserPasarNivel = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">9</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserExp = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">10</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">frmMain<span style="color: #66cc66;">[</span>u<span style="color: #66cc66;">]</span>.<span style="color: #66cc66;">LblKills</span><span style="color: #66cc66;">[</span>/u<span style="color: #66cc66;">]</span>.<span style="color: #66cc66;">Caption</span> = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">11</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li></ol></div>[/vb]


donde subraye me tira el error q dice :

Method or data member not found


ni idea por q es :?
 

Mikinel

Licenciado en Cinismo
matias89 dijo:
[vb]<div class="vb" id="{CB}" style="font-family: monospace;"><ol><li style="" class="li1"> <span style="color: #b1b100;">Case</span> <span style="color: #ffffff;">"EST"</span>                  <span style="color: #808080;">' >>>>> Actualiza Estadisticas de Usuario :: EST</span></li><li style="" class="li1">            </li><li style="" class="li2">            Rdata = <span style="color: #b1b100;">Right</span>$<span style="color: #66cc66;">(</span>Rdata, <span style="color: #b1b100;">Len</span><span style="color: #66cc66;">(</span>Rdata<span style="color: #66cc66;">)</span> - <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMaxHP = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">1</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMinHP = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">2</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserMaxMAN = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">3</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMinMAN = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">4</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserMaxSTA = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">5</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserMinSTA = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">6</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserGLD = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">7</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserLvl = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">8</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li2">            UserPasarNivel = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">9</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">            UserExp = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">10</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li><li style="" class="li1">frmMain<span style="color: #66cc66;">[</span>u<span style="color: #66cc66;">]</span>.<span style="color: #66cc66;">LblKills</span><span style="color: #66cc66;">[</span>/u<span style="color: #66cc66;">]</span>.<span style="color: #66cc66;">Caption</span> = <span style="color: #b1b100;">Val</span><span style="color: #66cc66;">(</span>ReadField<span style="color: #66cc66;">(</span><span style="color: #cc66cc;">11</span>, Rdata, <span style="color: #cc66cc;">44</span><span style="color: #66cc66;">)</span><span style="color: #66cc66;">)</span></li></ol></div>[/vb]


donde subraye me tira el error q dice :

Method or data member not found


ni idea por q es :?
Crea un label que se llame así.
AY Darkthom, que código simple que hiciste, podrías haces un code un poco más interesante, ¿no? Si total ese lo hace cualquiera, ponete a hacer códigos de verdad en ves de esto.














PD: Viste que feo que es :p.
PD2: Ta bueno el code.
 

CHOTS

Director LapsusAO
En el poco tiempo q llevo en programacion, jamas llegue a entender q significa esto:

Val(ReadField(11, Rdata, 44))

:S

PD: El code anda perfecto
 

Mikinel

Licenciado en Cinismo
CHOTS dijo:
En el poco tiempo q llevo en programacion, jamas llegue a entender q significa esto:

Val(ReadField(11, Rdata, 44))

:S

PD: El code anda perfecto
El readfield lo que hace es separar una cadena en diferentes terminos utilizando como separador el númeor de caracter que le das vos, en esta caso 44 (,). Este ejemplo lee el termino número 11 y lo convierte en un número.
 
Estado
Cerrado para nuevas respuestas.
Arriba