The hidden face 77 Odesláno: 28. Březen, 2013 Share Odesláno: 28. Březen, 2013 Ahoj mám menčí problém.Mě se v exisu nelbilo to že kdyz dá admin někomu kick takže se mu napíše jaký admin mu ho dal a takhle sem si to upravil: format(CZstring, 255, "[ ! ] Hrac %s byl vyhozen ze serveru Administratorem! [Duvod: %s]", Jmeno(CMD_ID), Jmeno(playerid), params[pos]); díve to vypadalo takto: format(CZstring, 255, "[ ! ] Hrac %s byl vyhozen ze serveru Administratorem %s! [Duvod: %s]", Jmeno(CMD_ID), Jmeno(playerid), params[pos]); A tak kdyz sem nekomu dal kick a napsal tam i důvod tak to napsalo: Hráč----- byl vyhozen ze serveru Administrátorem![Duvod:Asem se napsalo místo důvodu moje jméno] Prosím nevíte co s tím? Link to comment Share on other sites More sharing options...
0 jAk3r 47 Odesláno: 28. Březen, 2013 Share Odesláno: 28. Březen, 2013 Protoze jsi pouzil New pro tvuj Nick a ne pro duvod Link to comment Share on other sites More sharing options...
0 Administrátor Ewwe 434 Odesláno: 28. Březen, 2013 Administrátor Share Odesláno: 28. Březen, 2013 musíš dodržovat posloupnoust argumentů Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 28. Březen, 2013 Author Share Odesláno: 28. Březen, 2013 Pochopil sem správně že s tím mám udělat toto: format(CZstring, 255, "[ ! ] Hrac %s byl vyhozen ze serveru Administratorem! [Duvod: %s]", Jmeno(CMD_ID), params[pos]); ? Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 Mám další problém dělám na barvě nicků a chci to přes exis menu a hazí mi to tuto chybu: array index out of bounds (variable "eXisMenu") . Prosím poraďte co s tím...popřípadě co dělám špatně a kam mám co dát Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 hoď code...ako to riešiš..a popíš aj čisla riadkov Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 Tohle sou řádky od čísla 368-429 po dcmd_color(playerid, params[]) { TestPrint("dcmd_color(playerid, params[])"); if(IsPlayerInAnyVehicle(playerid)) MLMSvitz(playerid, "[ ! ] Pro potvrzení výběru z menu v autě použij 'W'.", "[ ! ] Pre potvrzenie vyberu z menu v aute pouzite 'W'."); Informace[playerid][MC_ID] = CMD_ID; ShowMenuForPlayer(eXisMenu[3],playerid); if(Informace[playerid][AdminLevel] < 1) return NizkyLevel(playerid); if(!strlen(params) || !IsNumeric(params)) return MLMWhite(playerid, "Použití: /color [ 1-7 ]", "Pouzitie: /color [ 1-7 ]"); new Barva = strval(params); if(Barva < 1 || Barva > 7) return MLMWhite(playerid, "Použití: /color [ 1-7 ]", "Pouzitie: /color [ 1-7 ]"); switch(Barva) { case 1: { SetPlayerColor(playerid, B_SVITIVA); MLMSvitz(playerid, "[!] Barva nicku: Světle zelená", "[ ! ] Farba nicku: Svetlo zelena"); HideMenuForPlayer(eXisMenu[3], playerid); } case 2: { SetPlayerColor(playerid, 0x4169FFAA); MLMSvitz(playerid, "[!] Barva nicku: Modrá", "[ ! ] Farba nicku: Modra"); HideMenuForPlayer(eXisMenu[3], playerid); } case 3: { SetPlayerColor(playerid, 0xFF0000AA); MLMSvitz(playerid, "[!] Barva nicku: Červená", "[ ! ] Farba nicku: Cervena"); HideMenuForPlayer(eXisMenu[3], playerid); } case 4: { SetPlayerColor(playerid, 0xFF6600AA); MLMSvitz(playerid, "[!] Barva nicku: Oranžová", "[ ! ] Farba nicku: Oranzova"); HideMenuForPlayer(eXisMenu[3], playerid); } case 5: { SetPlayerColor(playerid, 0xFFFF00AA); MLMSvitz(playerid, "[!] Barva nicku: Žlutá", "[ ! ] Farba nicku: Zlta"); HideMenuForPlayer(eXisMenu[3], playerid); } case 6: { SetPlayerColor(playerid, 0xFFFFFFAA); MLMSvitz(playerid, "[!] Barva nicku: Bílá", "[ ! ] Farba nicku: Biela"); HideMenuForPlayer(eXisMenu[3], playerid); } case 7: { SetPlayerColor(playerid, 0x00000000); MLMSvitz(playerid, "[!] Barva nicku: Neviditelná černá", "[ ! ] Farba nicku: Neviditelna cerna"); HideMenuForPlayer(eXisMenu[3],playerid); } } return true; } To pužití [1-7] potom vymažu tady je exismenu: riadky 2032-2044 //-------------------------------------------------------------------------- eXisMenu[4] = CreateMenu("~r~C~w~olor", 1, 50.0, 130.0, 100.0, 200.0); if(IsValidMenu(eXisMenu[3])) { AddMenuItem(eXisMenu[3], 0, "Zelena"); AddMenuItem(eXisMenu[3], 0, "Modra"); AddMenuItem(eXisMenu[3], 0, "Cervena"); AddMenuItem(eXisMenu[3], 0, "Oranzova"); AddMenuItem(eXisMenu[3], 0, "Zluta"); AddMenuItem(eXisMenu[3], 0, "Bila"); AddMenuItem(eXisMenu[3], 0, "Neviditelna"); AddMenuItem(eXisMenu[3], 0, "Konec"); } tod vse vic tam na to nemám. a hází mi to alespon 18 chyb se stejným důvodem:array index out of bounds (variable "eXisMenu") a jeden je íny:error 017: undefined symbol "CMD_ID" Okopíroval jsem to od příkazu car páč to je dost podobný ,řekl bych že to mám skoro stejné až na pár vyjímek. Link to comment Share on other sites More sharing options...
0 Rad012 23 Odesláno: 30. Březen, 2013 Share Odesláno: 30. Březen, 2013 niekde hore nájdeš new Menu:eXisMenu[3]; 3 zmeň na 4 Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 30. Březen, 2013 Author Share Odesláno: 30. Březen, 2013 varovaní tohle tam mám od zacatku co se zacal pracovat s exisem :public function lacks forward declaration (symbol "OnPlayerPrivmsg") premyslel sem ze public function zmenim na forward ale to mi nezmodra jako tu public a hodi to strasne moc chyb ale jinak dikky a jestli bys mi mohl napsat co s tou jednou chybou prosim? Jeste neco tabulka nabehne i s barvami ale kdyz nejakou vyberu nic se nestane.Barvy mi jdou dávat jen prez prikaz /color 1-7 Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 public OnPlayerPrivmsg(playerid, recieverid, text[]) { TestPrint("public OnPlayerPrivmsg(playerid, recieverid, text[])"); if(IsPlayerConnected(playerid)) { StatistikaWrite("PM Zpravy"); //-------------------------------------------------------------------------- if(Informace[playerid][umlceni] && Informace[recieverid][AdminLevel] < 1) { MLMWhite(playerid, "[ ! ] Jsi umlceny, PM muzes poslat pouze Administratorum /admins","[ ! ] Si umlceny, PM mozes poclat iba Administratorovi /admins"); return 0; } //-------------------------------------------------------------------------- else if(Informace[playerid][AdminLevel] == 0 && Informace[recieverid][AdminLevel] == 0) { new CZstring[90],SKstring[90],string[256]; format(CZstring, 90, "[ PM %s pise hraci %s ]",Jmeno(playerid),Jmeno(recieverid)); format(SKstring, 90, "[ PM %s pise hracovi %s ]",Jmeno(playerid),Jmeno(recieverid)); format(string,256,"[ %s ]" ,text); for(new i=0;i<MAX_PLAYERS_EX;i++) { if(IsPlayerConnected(i)) { if(Informace[i][AdminLevel] > 3) { MLMCerv(i,CZstring,SKstring); SendClientMessage(i,B_CERVENA,string); } } } } //-------------------------------------------------------------------------- } TestPrint("public OnPlayerPrivmsg(playerid, recieverid, text[]) END"); return true; } Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 myslel som kód toho menu aha sry dcmd_color(playerid, params[]) { TestPrint("dcmd_color(playerid, params[])"); ShowMenuForPlayer(eXisMenu[3],playerid); if(Informace[playerid][AdminLevel] < 1) return NizkyLevel(playerid); if(!strlen(params) || !IsNumeric(params)) return MLMWhite(playerid, "Použití: /color [ 1-7 ]", "Pouzitie: /color [ 1-7 ]"); new Barva = strval(params); if(Barva < 1 || Barva > 7) return MLMWhite(playerid, "Použití: /color [ 1-7 ]", "Pouzitie: /color [ 1-7 ]"); switch(Barva) { case 1: { SetPlayerColor(playerid, B_SVITIVA); MLMSvitz(playerid, "[ ! ] Barva nicku: Světle zelená", "[ ! ] Farba nicku: Svetlo zelena"); HideMenuForPlayer(eXisMenu[3], playerid); } case 2: { SetPlayerColor(playerid, 0x4169FFAA); MLMSvitz(playerid, "[ ! ] Barva nicku: Modrá", "[ ! ] Farba nicku: Modra"); HideMenuForPlayer(eXisMenu[3], playerid); } case 3: { HideMenuForPlayer(eXisMenu[3], playerid); SetPlayerColor(playerid, 0xFF0000AA); MLMSvitz(playerid, "[ ! ] Barva nicku: Červená", "[ ! ] Farba nicku: Cervena"); } case 4: { HideMenuForPlayer(eXisMenu[3], playerid); SetPlayerColor(playerid, 0xFF6600AA); MLMSvitz(playerid, "[ ! ] Barva nicku: Oranžová", "[ ! ] Farba nicku: Oranzova"); } case 5: { SetPlayerColor(playerid, 0xFFFF00AA); MLMSvitz(playerid, "[ ! ] Barva nicku: Žlutá", "[ ! ] Farba nicku: Zlta"); HideMenuForPlayer(eXisMenu[3], playerid); } case 6: { SetPlayerColor(playerid, 0xFFFFFFAA); MLMSvitz(playerid, "[ ! ] Barva nicku: Bílá", "[ ! ] Farba nicku: Biela"); HideMenuForPlayer(eXisMenu[3], playerid); } case 7: { SetPlayerColor(playerid, 0x00000000); MLMSvitz(playerid, "[ ! ] Barva nicku: Neviditelná černá", "[ ! ] Farba nicku: Neviditelna cerna"); HideMenuForPlayer(eXisMenu[3], playerid); } } return true; } //-------------------------------------------------------------------------- eXisMenu[3] = CreateMenu("~r~C~w~olor", 1, 50.0, 130.0, 100.0, 200.0); if(IsValidMenu(eXisMenu[3])) { AddMenuItem(eXisMenu[3], 0, "Zelena"); AddMenuItem(eXisMenu[3], 0, "Modra"); AddMenuItem(eXisMenu[3], 0, "Cervena"); AddMenuItem(eXisMenu[3], 0, "Oranzova"); AddMenuItem(eXisMenu[3], 0, "Zluta"); AddMenuItem(eXisMenu[3], 0, "Bila"); AddMenuItem(eXisMenu[3], 0, "Neviditelna"); AddMenuItem(eXisMenu[3], 0, "Konec"); } Link to comment Share on other sites More sharing options...
0 The hidden face 77 Odesláno: 31. Březen, 2013 Author Share Odesláno: 31. Březen, 2013 a public OnPlayerSelectedMenuRow si nechal kde ? Díky Link to comment Share on other sites More sharing options...
Dotaz
The hidden face 77
Ahoj mám menčí problém.Mě se v exisu nelbilo to že kdyz dá admin někomu kick takže se mu napíše jaký admin mu ho dal a takhle sem si to upravil:
format(CZstring, 255, "[ ! ] Hrac %s byl vyhozen ze serveru Administratorem! [Duvod: %s]", Jmeno(CMD_ID), Jmeno(playerid), params[pos]);
díve to vypadalo takto:
format(CZstring, 255, "[ ! ] Hrac %s byl vyhozen ze serveru Administratorem %s! [Duvod: %s]", Jmeno(CMD_ID), Jmeno(playerid), params[pos]);
A tak kdyz sem nekomu dal kick a napsal tam i důvod tak to napsalo:
Hráč----- byl vyhozen ze serveru Administrátorem![Duvod:Asem se napsalo místo důvodu moje jméno]
Prosím nevíte co s tím?
Link to comment
Share on other sites
11 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