05.08.2011, 20:27
Hey guys,
I`ve a Problem.
I use for(new.... in my PayDay-Script buut,
I get the message 2x because me and my bot are connected.
Can anyone help me?
I`ve a Problem.
I use for(new.... in my PayDay-Script buut,
I get the message 2x because me and my bot are connected.
Can anyone help me?
Код:
public PayDay() { new iMoney, string[100], stringd[100], BMoney, JMoney; SendClientMessageToAll(COLOR_ORANGE,"______________________Payday______________________"); for(new i;i<MAX_PLAYERS;i++) { if(!IsPlayerConnected(i)) continue; iMoney = 0; BMoney = 0; JMoney = 0; for(new g; g < sizeof(Gebiete); g++) { if(gTeam[i] == Gebiete[g][gOwner]) { iMoney += 300; Player[i][Bank] += 300; } } if(Org[i][Member] == 4) { JMoney += 425; } if(Org[i][Member] == 5) { JMoney += 350; } if(Org[i][Member] == 6) { JMoney += 500; } if(Org[i][Member] == 7) { JMoney += 550; } Player[i][Bank] += JMoney; if(GetPVarInt(i, "Businessearnings") != 0) { BMoney = GetPVarInt(i, "Businessearnings"); Player[i][Bank] += GetPVarInt(i, "Businessearnings"); } if( iMoney > 0 || BMoney > 0 || JMoney > 0 ) { format(string,sizeof(string),"Properties: $%d Zone/s: $%d (%d zone/s) Job: $%d",BMoney,iMoney, ( iMoney / 300 ) , JMoney ) ; format(stringd,sizeof(stringd),"Unternehmen: $%d Gebiet/e: $%d (%d Gebiet/e) Job: $%d",BMoney,iMoney, ( iMoney / 300 ) , JMoney); ClientLanguageText(i,COLOR_ORANGE,stringd,string); } } SendClientMessageToAll(COLOR_ORANGE,"__________________________________________________"); return 1; }