/who
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
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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;
}
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
when i try ti i get erorrs i fix them but then i get 2 lefted and cant fixblackfury wrote:try that.... :ph34r: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; }
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
works ????? :blink: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; }
<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>
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i finally get it

<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' />
??? 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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
i mean : its works for me 




<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' />
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>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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.juggalo2 wrote: yes it will work but whne tehre mrtoe ppl realy on it still will on read whats that player is
get rooted.