When fairy id == 41 then element of character == water(2)
I'm really really bad in programming
Fairies working but when id == 41 element is still 0 (like other fairies)
pls help
Code:
void Fairy(int plrid, std::string id){
std::string atrybut;
std::string packet = Encrypt("pairy 1 " + IntegerToString(pg[plrid].Number) + " 4 0 30 " + id);
for (int i = 0; i < clients; i++)
{
if (id[i] == 41);
Encrypt("pairy 1 " + IntegerToString(pg[plrid].Number) + " 4 " + "2" + " 70 41");
}
for (int i = 0; i < clients; i++)
{
if (pg[i].Online == 0 && pg[i].Map == pg[plrid].Map)
{
for (int i = 0; i < clients; i++) if (pg[i].Online == 0 && pg[i].Map == pg[plrid].Map) send(Connection[i], packet.c_str(), packet.size(), 0);
}
}
}






