custura Posted April 11, 2017 Report Share Posted April 11, 2017 (edited) CMD:attack https://pastebin.com/eSYCKb9f Daca nu sunt in mafie zice ca nu sunt mafiot Daca sunt in mafie pot ataca turfu dar imi apare asa: i.imgur.com/TtcInqF.png si ataca doar turf-ul cu id-ul 0 apoi 1 si tot asa, nu ataca turfu pe care sunt eu Ce as putea face? Edited April 11, 2017 by custura Link to comment Share on other sites More sharing options...
0 WopsS Posted April 11, 2017 Report Share Posted April 11, 2017 Tu acolo verifici daca IsPlayerInTurf returneaza 0, eu vad ca returnezi 0 daca nu este in turf. Link to comment Share on other sites More sharing options...
0 custura Posted April 11, 2017 Author Report Share Posted April 11, 2017 Acum 24 minute, WopsS a spus: Tu acolo verifici daca IsPlayerInTurf returneaza 0, eu vad ca returnezi 0 daca nu este in turf. https://pastebin.com/9835jhHX Link to comment Share on other sites More sharing options...
0 WopsS Posted April 11, 2017 Report Share Posted April 11, 2017 Eu ma refeream la linia asta if(IsPlayerInTurf(playerid, i) == 0) { turf = i; break; } 1 Link to comment Share on other sites More sharing options...
0 custura Posted April 11, 2017 Author Report Share Posted April 11, 2017 Acum 2 ore, WopsS a spus: Eu ma refeream la linia asta if(IsPlayerInTurf(playerid, i) == 0) { turf = i; break; } Daca nu sunt pe turf nu ataca, dar daca sunt pe oricare turf din cele 24 ataca turful 1 Link to comment Share on other sites More sharing options...
0 InceMan Posted April 11, 2017 Report Share Posted April 11, 2017 Salut, incearca sa definesti asa for(new i = 1; i <= sizeof(TurfInfo); i++) { if(IsPlayerInTurf(playerid, i) == 1) { turf = i; break; } } 1 FiveGame Lands Pawno Developer, Mapping , Scripter Since 2016 Link to comment Share on other sites More sharing options...
0 AddisoN Posted April 12, 2017 Report Share Posted April 12, 2017 In loc de asta if(IsPlayerInTurf(playerid, i) == 0) { turf = i; break; } Pune asta if(IsPlayerInTurf(playerid, i)) { turf = i; break; } Link to comment Share on other sites More sharing options...
0 custura Posted April 12, 2017 Author Report Share Posted April 12, 2017 Acum 18 ore, Geani a spus: Salut, incearca sa definesti asa for(new i = 1; i <= sizeof(TurfInfo); i++) { if(IsPlayerInTurf(playerid, i) == 1) { turf = i; break; } } Bun a mers, doar ca la mesaj imi zice doar de factiunea SFPD ca ea ataca ea este atacata desi eu atac dintr-o mafie Link to comment Share on other sites More sharing options...
0 InceMan Posted April 12, 2017 Report Share Posted April 12, 2017 1 oră în urmă, custura a spus: Bun a mers, doar ca la mesaj imi zice doar de factiunea SFPD ca ea ataca ea este atacata desi eu atac dintr-o mafie incearca sa rescrii comanda din cate vad ai micile gresel cred ca ar merge o separatie de foreach(Player, i) { if(PlayerInfo[i][pMember] == TurfInfo[turf][zOwned] || PlayerInfo[i][pMember] == WarInfo[turf][wAttacker]) { SetPlayerVirtualWorld(i, 1024); SendClientMessage(i, COLOR_YELLOW, "War-ul a inceput, va avea loc in acelasi virtual world cu toti jucatorii."); } } if(WarInfo[turf][wAttacker] == 4 || TurfInfo[turf][zOwned] == 4) { for(new veh; veh < sizeof(Aztecasc); veh++) { SetVehicleVirtualWorld(Aztecasc[veh], 1024); } } //etc. FiveGame Lands Pawno Developer, Mapping , Scripter Since 2016 Link to comment Share on other sites More sharing options...
0 custura Posted April 12, 2017 Author Report Share Posted April 12, 2017 Acum 17 minute, Geani a spus: incearca sa rescrii comanda din cate vad ai micile gresel cred ca ar merge o separatie de foreach(Player, i) { if(PlayerInfo[i][pMember] == TurfInfo[turf][zOwned] || PlayerInfo[i][pMember] == WarInfo[turf][wAttacker]) { SetPlayerVirtualWorld(i, 1024); SendClientMessage(i, COLOR_YELLOW, "War-ul a inceput, va avea loc in acelasi virtual world cu toti jucatorii."); } } if(WarInfo[turf][wAttacker] == 4 || TurfInfo[turf][zOwned] == 4) { for(new veh; veh < sizeof(Aztecasc); veh++) { SetVehicleVirtualWorld(Aztecasc[veh], 1024); } } //etc. Eu nu am asa ceva Link to comment Share on other sites More sharing options...
0 InceMan Posted April 12, 2017 Report Share Posted April 12, 2017 o poti adauga in comanda FiveGame Lands Pawno Developer, Mapping , Scripter Since 2016 Link to comment Share on other sites More sharing options...
0 AddisoN Posted April 13, 2017 Report Share Posted April 13, 2017 Acum 13 ore, custura a spus: Eu nu am asa ceva Problema cu mesaju cred ca e de la functia care returneaza numele factiunii pt ca la comanda atack pare a fi in regula. Pune functia care returneaza numele factiunii. Ca sa fii sigur daca e din comanda sau functie, trimite mesajele cu idurile factiunilor, daca idurile sunt bune atunci e o problema la functia cu numele factiunilor Link to comment Share on other sites More sharing options...
0 custura Posted April 13, 2017 Author Report Share Posted April 13, 2017 Acum 14 ore, AddisoN a spus: Problema cu mesaju cred ca e de la functia care returneaza numele factiunii pt ca la comanda atack pare a fi in regula. Pune functia care returneaza numele factiunii. Ca sa fii sigur daca e din comanda sau functie, trimite mesajele cu idurile factiunilor, daca idurile sunt bune atunci e o problema la functia cu numele factiunilor https://pastebin.com/UubDi6vC https://pastebin.com/zfwXtM0p Link to comment Share on other sites More sharing options...
0 AddisoN Posted April 13, 2017 Report Share Posted April 13, 2017 1 oră în urmă, custura a spus: https://pastebin.com/UubDi6vC https://pastebin.com/zfwXtM0p Stii ce functie returneaza numele factiunii? Se pare ca nu. Faction_GetName pe asta o voiam. Link to comment Share on other sites More sharing options...
0 custura Posted April 13, 2017 Author Report Share Posted April 13, 2017 Acum 15 minute, AddisoN a spus: Stii ce functie returneaza numele factiunii? Se pare ca nu. Faction_GetName pe asta o voiam. https://pastebin.com/6pcudWNQ Link to comment Share on other sites More sharing options...
0 AddisoN Posted April 13, 2017 Report Share Posted April 13, 2017 Acum 51 minute, custura a spus: https://pastebin.com/6pcudWNQ Asta e problema pt ca funtia afiseaza numele factiunii din care face parte un jucator, cum pe server nu exsita idul acela returneaza id 0 afica sfpd. De exemplu factiunea care ataca are id 10 si cea care se apara 13. Tu cand apelezi functia Faction_GetName(factiune care ataca adica id 10) preia idul factiuni din care face parte jucatorul cu id 10 si returneaza numele acesteia. Cum pe server nu cred ca sunt 11 persoane functia returneaza 0 si cel mai probabil e factiunea sfpd. In concluzie fa alta functie care sa ia numele factiunii. public factionname (idfactiune) {New name [30]; Format (name,30,"%s",factions [idfactiune][factionname]); Return name;} Asta e un exemplu adapateazal tu. Link to comment Share on other sites More sharing options...
Question
custura
CMD:attack https://pastebin.com/eSYCKb9f
Daca nu sunt in mafie zice ca nu sunt mafiot
Daca sunt in mafie pot ataca turfu dar imi apare asa: i.imgur.com/TtcInqF.png
si ataca doar turf-ul cu id-ul 0 apoi 1 si tot asa, nu ataca turfu pe care sunt eu
Ce as putea face?
Edited by custuraLink to comment
Share on other sites
15 answers to this question
Recommended Posts