gunskill Posted January 13, 2012 Report Share Posted January 13, 2012 Ce e inneregula aici?Primesc mesajul de 16 ori![pawn]if(takezone == 1) { if(PlayerInfo[killerid][pLeader] == 12 || PlayerInfo[killerid][pMember] == 12) { if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12) { for(new z=0; z<sizeof(ZoneInfo); z++) { if(ZoneInfo[z][zTakeOn] == 1 && bllsvsgst == 1 || lsvvsgst == 1 || vlavsgst == 1) { new killer[MAX_PLAYER_NAME]; GetPlayerName(killerid, killer, sizeof(killer)); format(string,128," {8B8BD9}* %s {349C00}Grove Street {8B8BD9}has killed %s {349C00}Grove Street{8B8BD9} and losted 1 point.",killer,name); SendGMessage(-1,string); scoreteamgst--; } } } }[/pawn]Functia SendGMessage[pawn]public SendGMessage(color, string[]){ for(new i = 0; i < MAX_PLAYERS; i++) { if(IsPlayerConnected(i)) { if(PlayerInfo[pLeader] == 12 || PlayerInfo[pMember] == 12) { SendClientMessage(i, color, string); } } }}[/pawn] Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted January 13, 2012 Report Share Posted January 13, 2012 Baga-l in afara loop-ului. Acesta il actioneaza de atatea ori. Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
gunskill Posted January 13, 2012 Author Report Share Posted January 13, 2012 cum adica in afara loop-ului? Link to comment Share on other sites More sharing options...
GabrielX1 Posted January 13, 2012 Report Share Posted January 13, 2012 nu imi dai si mie takezone te rup frumos, ca am vazut ca il ai si merge:X Link to comment Share on other sites More sharing options...
gunskill Posted January 13, 2012 Author Report Share Posted January 13, 2012 nu imi dai si mie takezone te rup frumos, ca am vazut ca il ai si merge:X10 euro si iti dau PM me Link to comment Share on other sites More sharing options...
GabrielX1 Posted January 13, 2012 Report Share Posted January 13, 2012 Asa ieftin, gata il cumpar! Link to comment Share on other sites More sharing options...
gunskill Posted January 13, 2012 Author Report Share Posted January 13, 2012 am rezolvat la prima adica la grove daca o las singura da daca le pun si ep celelalte iara .. Link to comment Share on other sites More sharing options...
xxSPEEDYxx Posted January 13, 2012 Report Share Posted January 13, 2012 Adik, in afara loop-ului in afara ceva de genu: for ( new i = 0; i < MAX_PLAYERS; i++ ) ca dupa aia functia se actioneaza de multe ori. Fara reclama in semnatura! Link to comment Share on other sites More sharing options...
gunskill Posted January 13, 2012 Author Report Share Posted January 13, 2012 da erori daca sterg aia si bineinteles o apranteza Link to comment Share on other sites More sharing options...
gunskill Posted January 14, 2012 Author Report Share Posted January 14, 2012 multumesc lui ice si lu xx -man (speedy ) am rezolvat Link to comment Share on other sites More sharing options...
Question
gunskill
Ce e inneregula aici?Primesc mesajul de 16 ori!
[pawn]if(takezone == 1)
{
if(PlayerInfo[killerid][pLeader] == 12 || PlayerInfo[killerid][pMember] == 12)
{
if(PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 12)
{
for(new z=0; z<sizeof(ZoneInfo); z++)
{
if(ZoneInfo[z][zTakeOn] == 1 && bllsvsgst == 1 || lsvvsgst == 1 || vlavsgst == 1)
{
new killer[MAX_PLAYER_NAME];
GetPlayerName(killerid, killer, sizeof(killer));
format(string,128," {8B8BD9}* %s {349C00}Grove Street {8B8BD9}has killed %s {349C00}Grove Street{8B8BD9} and losted 1 point.",killer,name);
SendGMessage(-1,string);
scoreteamgst--;
}
}
}
}[/pawn]
Functia SendGMessage
[pawn]public SendGMessage(color, string[])
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[pLeader] == 12 || PlayerInfo[pMember] == 12)
{
SendClientMessage(i, color, string);
}
}
}
}[/pawn]
Link to comment
Share on other sites
9 answers to this question
Recommended Posts