/who

All Helbreath Server Source Discussion here.
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

ok i been toying with this for a few days now i need to have the /who do how many ares and elvine are on.
i got it to read only me and not everyone
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
blackfury
noob
Posts: 29
Joined: Wed Oct 27, 2004 9:13 pm

Post by blackfury »

Code: Select all

void CGame::Who(int iClientH)
{
int i, j, t;
char cMsg[120];
j=0;
t=0;

if(m_pCLientList[iClientH] == NULL) return;

ZeroMemory(cMsg, sizeof(cMsg));

else{
for(i=0; i < DEF_MAXCLIENTS; i++)
if (m_pClientList[i] != NULL){
 if(m_pClientList[i]->m_cSide == 1) t++;
 else if(m_pClientList[i]->m_cSide == 2) j++;
 else return;
}
}
wsprintf(cMsg, " Ares: %d Elv: %d", j, t);
ShowClientMsg(iClientH, cMsg);
return;
}
try that.... :ph34r:
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

nope did work
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

bumpy
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

blackfury wrote:

Code: Select all

void CGame::Who(int iClientH)
{
int i, j, t;
char cMsg[120];
j=0;
t=0;

if(m_pCLientList[iClientH] == NULL) return;

ZeroMemory(cMsg, sizeof(cMsg));

else{
for(i=0; i < DEF_MAXCLIENTS; i++)
if (m_pClientList[i] != NULL){
 if(m_pClientList[i]->m_cSide == 1) t++;
 else if(m_pClientList[i]->m_cSide == 2) j++;
 else return;
}
}
wsprintf(cMsg, " Ares: %d Elv: %d", j, t);
ShowClientMsg(iClientH, cMsg);
return;
}
try that.... :ph34r:
when i try ti i get erorrs i fix them but then i get 2 lefted and cant fix
ill try to mess with ti soem mroe but idk
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

this is whats i have so far it works but it will only read tahst client enyoen know how to fix it so ti reads them all

Code: Select all

if (memcmp(cp, "/who", 4) == 0) {
char cMsg[120];  
int i;
int are; 
int elv;
for (i = 1; i < DEF_MAXCLIENTS; i++){ 
if (m_pClientList[i] != NULL) {
char message[100]; 
are = 0;
elv = 0;
ZeroMemory(cMsg, sizeof(cMsg));
if (memcmp(m_pClientList[iClientH]->m_cLocation, "are", 1) == 0 )are++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elv", 2) == 0 ) elv++;
wsprintf(cMsg, " Ares: %d Elv: %d",are, elv);
ShowClientMsg(iClientH, cMsg);
} 
}
return;
  }
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
James!
Member
Posts: 134
Joined: Sat Jan 01, 2005 12:09 am

Post by James! »

juggalo2 wrote: this is whats i have so far it works but it will only read tahst client enyoen know how to fix it so ti reads them all

Code: Select all

if (memcmp(cp, "/who", 4) == 0) {
char cMsg[120];  
int i;
int are; 
int elv;
for (i = 1; i < DEF_MAXCLIENTS; i++){ 
if (m_pClientList[i] != NULL) {
char message[100]; 
are = 0;
elv = 0;
ZeroMemory(cMsg, sizeof(cMsg));
if (memcmp(m_pClientList[iClientH]->m_cLocation, "are", 1) == 0 )are++;
else if (memcmp(m_pClientList[iClientH]->m_cLocation, "elv", 2) == 0 ) elv++;
wsprintf(cMsg, " Ares: %d Elv: %d",are, elv);
ShowClientMsg(iClientH, cMsg);
} 
}
return;
  }
works ????? :blink:
<img src='http://img.photobucket.com/albums/v482/ ... ingFan.jpg' border='0' alt='user posted image' /><br><a href='http://www.hbdreams.com.ar' target='_blank'><b>- Helbreath Dream Team -</a></b><br><a href='http://www.dreamforums.com.ar/top50' target='_blank'><b>- Dream Top 50 Owner Admin -</a></b><br>- <b>Contacto Por Mail</b> : <a href='mailto:james@dreamforums.com.ar'>james@dreamforums.com.ar</a>
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

it works but it only read that clicn and tahst client thats did /who it wont read all client and char
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

bummy
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

enyboady get it yet ??
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

i finally get it :P
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

??? whats u mean
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Pener
Member
Posts: 110
Joined: Fri Feb 27, 2004 3:57 pm
Location: Czech Republic

Post by Pener »

i mean : its works for me :P

Image

Image
<img src='http://i19.photobucket.com/albums/b153/s00pr/Pener.jpg' border='0' alt='user posted image' /><br><img src='http://i19.photobucket.com/albums/b153/ ... anner3.jpg' border='0' alt='user posted image' />
juggalo2
Spamtastic
Posts: 1144
Joined: Sun Jul 17, 2005 5:28 pm

Post by juggalo2 »

yes it will work but whne tehre mrtoe ppl realy on it still will on read whats that player is
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Kenshi
Loyal fan
Posts: 208
Joined: Thu Nov 20, 2003 8:27 am

Post by Kenshi »

juggalo2 wrote: yes it will work but whne tehre mrtoe ppl realy on it still will on read whats that player is
come again? Oh i think i know what hes saying, it only outputs yourself it doesn't recognise any other players on the server? I'm not sure I haven't tried this but I guess that's what he's saying.
get rooted.
Post Reply