Daffy 8 Odesláno: 20. Březen, 2010 Share Odesláno: 20. Březen, 2010 Tady vám dávám funkci, která zobrazí online adminy v dialogovém okně ( upravte podle sebe ) muzete s tim dale pracovat v OnDialog atd.. public ShowAdminList(playerid) { new string[256],string_b[256],rcon[5]; for(new i=0;i { if(IsPlayerConnected(i) && !IsPlayerNPC(i)) // kdyz je ID pripojeno, kdyz to neni BOT { if(ADMIN_LEVEL[i] > 0) // kdyz ID ma vetsi admin_level nez 0 { if(IsPlayerAdmin(i)) { rcon = "Ano"; } else { rcon = "Ne"; } format(string_b,sizeof(string_,"%d %d %s %s\n",i,ADMIN_LEVEL[i],rcon,JmenoHrace(i)); strcat(string_b,string); // pripoji retezec string_b do string } } } ShowPlayerDialog(playerid, ID_DIALOGU, DIALOG_STYLE_LIST," ID AdminLevel RCON Nick",string,"Ok","Konec"); // zobrazime okno return 1; } Link to comment Share on other sites More sharing options...
Topina 0 Odesláno: 21. Březen, 2010 Share Odesláno: 21. Březen, 2010 pekny pochvala Link to comment Share on other sites More sharing options...
ATomas 291 Odesláno: 21. Březen, 2010 Share Odesláno: 21. Březen, 2010 for(new i=0;i toto nemusi fungovat jak od toho pozadujeme protoze to pocita online hrace na serveru a nehleda nejvisi pripojene id Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 21. Březen, 2010 Author Share Odesláno: 21. Březen, 2010 proc bych mel hledat nejvyssi pripojene ID ? , neni problem zmenit na max hrace, ale funguje to i takto. // mas to upraveny at mas radost Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 21. Březen, 2010 Share Odesláno: 21. Březen, 2010 jelikoz GetMaxPlayers() ti spocita treba ze mas na serveru 20 lidi...ale admina s ID 30 ti to neukaze...jelikoz si tam mohl mit 5 minut pred tim 30 lidi a najednou tam mas 20...a toho admina s ID 30 ti to neukaze...chudak malickej...bude v zapomneni Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 21. Březen, 2010 Author Share Odesláno: 21. Březen, 2010 jo tak, to je mozny xDD Link to comment Share on other sites More sharing options...
Om3n 78 Odesláno: 21. Březen, 2010 Share Odesláno: 21. Březen, 2010 PHP ti jde...ale to logicky premejsleni Link to comment Share on other sites More sharing options...
Daffy 8 Odesláno: 21. Březen, 2010 Author Share Odesláno: 21. Březen, 2010 sam zapomel jak funguje getmaxplayers Link to comment Share on other sites More sharing options...
Globální moderátor HighPrint 177 Odesláno: 22. Březen, 2010 Globální moderátor Share Odesláno: 22. Březen, 2010 Máš to myslím špatně. Má to být naopak tuším... strcat(string,string_; btw je to pěkné Link to comment Share on other sites More sharing options...
RmT_Kjuba 10 Odesláno: 4. Duben, 2010 Share Odesláno: 4. Duben, 2010 hej lidi vam to funguje ? ja at delam co delam ukaze se dialog ale bez adminu i kdyz mam admin lvl promena pro admin lvl je if(AdminLVL >0) ....neni tam neco spatne uz sem stou podminkou skousel delat barzco jo a mam to pres prikaz /admins ... Link to comment Share on other sites More sharing options...
TWeak 5 Odesláno: 4. Duben, 2010 Share Odesláno: 4. Duben, 2010 Jsem nevěděl že Daffy umí pawno i PHP jinak Dialogy se mi na sampu nelíbí takže nevyužiju. Link to comment Share on other sites More sharing options...
_Killer_ 1 Odesláno: 4. Duben, 2010 Share Odesláno: 4. Duben, 2010 ja skor menu viuzivam Link to comment Share on other sites More sharing options...
Globální moderátor HighPrint 177 Odesláno: 4. Duben, 2010 Globální moderátor Share Odesláno: 4. Duben, 2010 djmckjuba":133rdia4]hej lidi vam to funguje ? ja at delam co delam ukaze se dialog ale bez adminu i kdyz mam admin lvl promena pro admin lvl je if(AdminLVL >0) ....neni tam neco spatne uz sem stou podminkou skousel delat barzco jo a mam to pres prikaz /admins ... omg a co asi píšu nad tebou??? má to obráceně je to strcat(string,string_; tady máte jak je ta celá funkce strcat(cíl,string které připojíme); omfg Link to comment Share on other sites More sharing options...
FreeWall 3 Odesláno: 4. Duben, 2010 Share Odesláno: 4. Duben, 2010 for(new i=0;itoto nemusi fungovat jak od toho pozadujeme protoze to pocita online hrace na serveru a nehleda nejvisi pripojene id jelikoz GetMaxPlayers() ti spocita treba ze mas na serveru 20 lidi...ale admina s ID 30 ti to neukaze...jelikoz si tam mohl mit 5 minut pred tim 30 lidi a najednou tam mas 20...a toho admina s ID 30 ti to neukaze...chudak malickej...bude v zapomneni btw: hele vy dva moderátoři, daffy měl script s GetMaxPlayers() dobře, funkce GetMaxPlayers(); totiž nepočítá online hráče na serveru, nebo co jste si mysleli, ale počítá maximum hráčů, kteří se můžou připojit na server, tzn. sloty serveru, které čte ze souboru server.cfg, takže pokud místo GetMaxPlayers() obvykle používáte MAX_PLAYERS tak zbytečně zatěžujete váš server PS: už vim proč ta RZE tak laguje Link to comment Share on other sites More sharing options...
RmT_Kjuba 10 Odesláno: 4. Duben, 2010 Share Odesláno: 4. Duben, 2010 no ja to chtel skusit vydel sem ze to pises ale divilo me ze nato nikdo nereaguje -- ned 04. dub 2010 19:48:28 -- jede diky Link to comment Share on other sites More sharing options...
Globální moderátor HighPrint 177 Odesláno: 8. Duben, 2010 Globální moderátor Share Odesláno: 8. Duben, 2010 nereaguje, protože si toho nikdo nevšiml Link to comment Share on other sites More sharing options...
RockY.Balboa 0 Odesláno: 10. Listopad, 2010 Share Odesláno: 10. Listopad, 2010 Mám problém, todle mě utoho vyjede za error C:\DOCUME~1\Kempik\Plocha\pawno\BURNIN~1.PWN(2019) : error 017: undefined symbol "ADMIN_LEVEL" C:\DOCUME~1\Kempik\Plocha\pawno\BURNIN~1.PWN(2019) : warning 215: expression has no effect C:\DOCUME~1\Kempik\Plocha\pawno\BURNIN~1.PWN(2019) : error 001: expected token: ";", but found "]" C:\DOCUME~1\Kempik\Plocha\pawno\BURNIN~1.PWN(2019) : error 029: invalid expression, assumed zero C:\DOCUME~1\Kempik\Plocha\pawno\BURNIN~1.PWN(2019) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Řádek: if(ADMIN_LEVEL > 0) // kdyz ID ma vetsi admin_level nez 0 Link to comment Share on other sites More sharing options...
DJ_Espire 0 Odesláno: 25. Prosinec, 2010 Share Odesláno: 25. Prosinec, 2010 Mám stejnou chybu. Link to comment Share on other sites More sharing options...
Guest [BJ]boban88 Odesláno: 25. Prosinec, 2010 Share Odesláno: 25. Prosinec, 2010 ADMIN_LEVEL tuto premennu si musite vymenit za svoju Link to comment Share on other sites More sharing options...
Guest Dawee Odesláno: 25. Prosinec, 2010 Share Odesláno: 25. Prosinec, 2010 "cat" Link to comment Share on other sites More sharing options...
Guest Sacre Odesláno: 23. Červenec, 2011 Share Odesláno: 23. Červenec, 2011 C:\Documents and Settings\Svoboda\Plocha\czeworld.pwn(4084) : warning 235: public function lacks forward declaration (symbol "ShowAdminList") C:\Documents and Settings\Svoboda\Plocha\czeworld.pwn(4091) : warning 215: expression has no effect C:\Documents and Settings\Svoboda\Plocha\czeworld.pwn(4091) : error 001: expected token: ";", but found "]" C:\Documents and Settings\Svoboda\Plocha\czeworld.pwn(4091) : error 029: invalid expression, assumed zero C:\Documents and Settings\Svoboda\Plocha\czeworld.pwn(4091) : fatal error 107: too many error messages on one line Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase 4 Errors. Mám tyto chyby Řádek : if(ADMIN_LEVEL[i] > 0) // kdyz ID ma vetsi admin_level nez 0 Link to comment Share on other sites More sharing options...
Globální moderátor HighPrint 177 Odesláno: 23. Červenec, 2011 Globální moderátor Share Odesláno: 23. Červenec, 2011 forward declaration (symbol "ShowAdminList") - chybí forward a ukaž jak máš nadefinované ADMIN_LEVEL Link to comment Share on other sites More sharing options...
Guest Sacre Odesláno: 23. Červenec, 2011 Share Odesláno: 23. Červenec, 2011 Nemám Link to comment Share on other sites More sharing options...
Globální moderátor HighPrint 177 Odesláno: 23. Červenec, 2011 Globální moderátor Share Odesláno: 23. Červenec, 2011 Tak to nadefinuj... Nebo změň na proměnu kde ti ukládají hodnoty admin levelu. Link to comment Share on other sites More sharing options...
Guest Sacre Odesláno: 23. Červenec, 2011 Share Odesláno: 23. Červenec, 2011 Takže když mám na winu Exis tam misto admin level dam exis ? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now