Jump to content
  • 0

pomoc Menu /teleporty


Roland

Dotaz

Recommended Posts

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

  • 0

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...