Roland 11 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 pri napisany prikazu /teleporty sa vyhodi menu a v nom stunty,drifty atd. neviete ako to spravit?? pls cely [TUT] tu niekde nieje??? Link to comment Share on other sites More sharing options...
0 Guest ErAsEr Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 nahoru new Menu:telemenu; OnGameModeInit telemenu = CreateMenu("~r~T~w~eleporty", 1, 50.0, 180.0, 200.0, 200.0); if(IsValidMenu(teleportmenu) { AddMenuItem(teleportmenu, 0, "Stunt"); } commandtext if(strmp(cmdtext, "/telemenu", true) == 0) { ShowMenuForPlayer(telemenu, playerid); return true; } pak public OnPlayerSelectedMenuRow if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 ok dik moc mas to u mna Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 ale ten posledni riadok pak public OnPlayerSelectedMenuRow if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } tak keby ze chcem viac ako to ma vyzerat???? to new ... to viem Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 kebyze chcem viac portov... Link to comment Share on other sites More sharing options...
0 Guest Joda Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 lol jen udelas to SAME akorad to trochu pridas AddMenuItem(teleportmenu, 0, "Stunt"); to si snad skopirujes a upravis a pak si predelas TOTO OnPlayerSelectedMenuRow if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 AddMenuItem(teleportmenu, 0, "Stunt");// case 0 AddMenuItem(teleportmenu, 0, "Drift");// case 1 chápeš? len pridávaš tie case Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 aha diiik moc Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 a este jeden dotaz ked tam dam napr. 10 teleportov tak na tich 10 teleportov bude len jedny suradnice?? OnPlayerSelectedMenuRow if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } alebo tam mam vlozit este toto if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } ale asi to je blbost ze :| Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 ježiš daj si koľko AddMenuItem potrebuješ a ptm if(current == telemenu) { switch(row) { case 0: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } case 1: { SetPlayerPos(playerid, X, Y, Z); SendClientMessage(playerid, B_BILA, "[ ! ] Teleportl ses na xxx"); } } } a tak postupne , proste kažé AddMenuItem musí mať vlastný case Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 no to som nevedel Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 pls vyhodilo mi to toto a nemozem to spravit vobec C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(52) : error 017: undefined symbol "teleportmenu" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(54) : error 017: undefined symbol "teleportmenu" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(55) : error 017: undefined symbol "teleportmenu" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(56) : error 017: undefined symbol "teleportmenu" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1356) : warning 217: loose indentation C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1386) : warning 217: loose indentation C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1414) : warning 217: loose indentation C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1502) : error 017: undefined symbol "strmp" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1519) : warning 217: loose indentation C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1579) : warning 217: loose indentation C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1582) : error 001: expected token: ";", but found "/" C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1583) : error 010: invalid function or declaration C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1585) : error 010: invalid function or declaration C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1587) : error 010: invalid function or declaration C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1592) : error 010: invalid function or declaration C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(1597) : error 010: invalid function or declaration Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 hore: #pragma tabsize 0 new Menu: teleportmenu; Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 dole sa to ako vola public OnPlayerSelectRow????? lebo to tam nemam Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 public OnPlayerSelectedMenuRow(playerid, row) { new Menu:current = GetPlayerMenu(playerid); //skripty return 1; } Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 este mi ukazuje error na strmp ZMAZANE Z DOVODU VIRIESENIA TAM malo bit na miesto strmp=strcmp Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 a este toto error 001: expected token: ")", but found "{" Link to comment Share on other sites More sharing options...
0 Mattsy 29 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 pošli riadky Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 ake errori?? :?: Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 real-life.pwn(54) : error 001: expected token: ")", but found "{" Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 co tam ma bit?? :shock: Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 ae riadky hod xD ne jaky error xD ukaz riadok 54 Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 C:\Documents and Settings\kulo45\Plocha\SA-MP[server]\[DC]Mod\real-life.pwn(54) : error 001: expected token: ")", but found "{" Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 1 Error. Link to comment Share on other sites More sharing options...
0 Mischino19 2 Odesláno: 16. Červenec, 2009 Share Odesláno: 16. Červenec, 2009 xDDD toto je jak u debilov xDD riadok v pawne nie hento omg kukni ja mam v riadku 54 toto #define BLUE 0x1229FAFF a ty tam mas co xD Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 aha teleportmenu = CreateMenu("~r~T~w~eleporty", 1, 50.0, 180.0, 200.0, 200.0); if(IsValidMenu(teleportmenu) { AddMenuItem(teleportmenu, 0, "Sekiho dom");// teleport 1 AddMenuItem(teleportmenu, 1, "Jakubov dom");// teleport 2 AddMenuItem(teleportmenu, 2, "Derby");// teleport 3 } Link to comment Share on other sites More sharing options...
0 Roland 11 Odesláno: 16. Červenec, 2009 Author Share Odesláno: 16. Červenec, 2009 teleportmenu = CreateMenu("~r~T~w~eleporty", 1, 50.0, 180.0, 200.0, 200.0); if(IsValidMenu(teleportmenu) { AddMenuItem(teleportmenu, 0, "Sekiho dom");// teleport 1 AddMenuItem(teleportmenu, 1, "Jakubov dom");// teleport 2 AddMenuItem(teleportmenu, 2, "Derby");// teleport 3 } Link to comment Share on other sites More sharing options...
Dotaz
Roland 11
pri napisany prikazu /teleporty sa vyhodi menu a v nom stunty,drifty atd. neviete ako to spravit?? pls cely [TUT] tu niekde nieje???
Link to comment
Share on other sites
36 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