PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Dobrý den ..Potreboval bych /admins ale pres dialog aby se to ukazovalo v Dialogu ..Mohl by mi sem nekdo hodit kod diky )) Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 new HracoveInformacie[playerid][hAdminLevel]; public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 new HracoveInformacie[playerid][hAdminLevel]; public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } return 0; } Prosimte ? ...Hodil sem to do pawna a Hodilo mi to errory ! Zde-->http://www.nahraj-obrazek.cz?d=0252d5dad16a6bc783d048626cda57c3 Tak ted uz jen jeden VIZ--> http://www.nahraj-obrazek.cz?d=df09b015e502e4f85f3f3133a65439ed Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Ten odkaz na obrázok nejde. //Edit: Ani ten druhý nejde. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Ten odkaz na obrázok nejde. //Edit: Ani ten druhý nejde. ... http://www.nahraj-obrazek.cz/?di=514033521656 Tak tento error hazi tedka Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Vymaž riadok: #if defined FILTERSCIRPT Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Vymaž riadok: #if defined FILTERSCIRPT Ted mi to hodilo toto http://www.nahraj-obrazek.cz/?di=314033528219 Vymaž riadok: #if defined FILTERSCIRPT Nemuzes mi sem hodit dyztak amx ? Prosim (( Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 new HracoveInformacie[MAX_PLAYERS][hAdminLevel]; public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } return 0; } Malo by to ísť, sorry nemám Pawno. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 new HracoveInformacie[MAX_PLAYERS][hAdminLevel]; public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } return 0; } Malo by to ísť, sorry nemám Pawno. (( Ono to nejde ..Nemuze nekdo pomoc ? Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Prekopíroval si ten kód? Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Ano presne ten ...Kod ! Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 A čo na tom nejde? Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Takto je tam neco blbe ? http://www.nahraj-obrazek.cz/?di=9140335602914 Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Omg, tak stlač F5, nie? Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Errory http://www.nahraj-obrazek.cz/?di=5140335623815 Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 enum hInfo { hAdminLevel } new HracoveInformacie[MAX_PLAYERS][hInfo]; public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Yeah Uz to de Ale kdyz sem ve hre tak pise na servery neni admistrator .. Ale admina mam Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Tak to je jasné, musíš si tú premennú nastaviť. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Poradis ja se fakt vubec nevyznam ? Prosim ... Jakou premenu ? Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } if (!strcmp("/setlevel", cmdtext, true, 9)) { HracoveInformacie[playerid][hAdminLevel] = 1; return 1; } return 0; } Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Error http://www.nahraj-obrazek.cz/?di=014033580722 public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } if (!strcmp("/setlevel", cmdtext, true, 9)) { HracoveInformacie[playerid][hAdminLevel] = 1; return 1; } return 0; } http://www.nahraj-obrazek.cz/?di=014033580722 Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Zle si to skopíroval. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Zle si to skopíroval. Nene se koukni ;O Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Zle si to skopíroval. Kopíruj to, dokým sa to nenaučíš. Link to comment Share on other sites More sharing options...
0 PanRožokRohliik 1 Odesláno: 21. Červen, 2014 Author Share Odesláno: 21. Červen, 2014 Kopíruj to, dokým sa to nenaučíš. Ale já fakt nwm ...Kdybych vedel (( Prosimte Link to comment Share on other sites More sharing options...
0 Kubko 22 Odesláno: 21. Červen, 2014 Share Odesláno: 21. Červen, 2014 Celý ten public OnPlayerCommandText vymaž od jeho začiatku až po koniec a daj tam toto: public OnPlayerCommandText(playerid, cmdtext[]) { if (!strcmp("/admins", cmdtext, true, 7)) { new string[256], pocet; for (new i; i < MAX_PLAYERS; i++) { if (IsPlayerConnected(i)) { if (HracoveInformacie[i][hAdminLevel] > 0) { new meno[MAX_PLAYER_NAME]; GetPlayerName(i, meno, sizeof (meno)); format(string, sizeof (string), "%s\n", meno); pocet++; } } } if (pocet != 0) { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", string, "Ukončiť", ""); } else { ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Admins", "Na serveri nie je online administrátor!", "Ukončiť", ""); } return 1; } if (!strcmp("/setlevel", cmdtext, true, 9)) { HracoveInformacie[playerid][hAdminLevel] = 1; return 1; } return 0; } Link to comment Share on other sites More sharing options...
Dotaz
PanRožokRohliik 1
Dobrý den ..Potreboval bych /admins ale pres dialog aby se to ukazovalo v Dialogu ..Mohl by mi sem nekdo hodit kod diky ))
Link to comment
Share on other sites
Top Posters For This Question
24
16
9
6
Popular Days
Jun 21
34
Jun 22
23
Aug 7
1
Top Posters For This Question
PanRožokRohliik 24 posts
Kubko 16 posts
Pekusis 9 posts
Uživatel 6 posts
Popular Days
Jun 21 2014
34 posts
Jun 22 2014
23 posts
Aug 7 2014
1 post
57 odpovědí na tuto otázku
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