GTA Közösség - A magyar GTA fórum

San Andreas Multiplayer (SA-MP) => SA-MP: Szerverfejlesztés => Segítségkérés => A témát indította: TheStaner - 2011. augusztus 31. - 21:00:04

Cím: Dialogos Teleport Gondok
Írta: TheStaner - 2011. augusztus 31. - 21:00:04
Sziasztok!

Az a gondom hogy beírom /tele és rámegyek bármelyikre nem jó :O


Script:
[pawn]#include <a_samp>
#define DIALOG_TEL 9180
#define DIALOG_LS 9181
#define DIALOG_SF 9182
#define DIALOG_LV 9183
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp(\"/tele\", cmdtext, true, 10) == 0)
{
   ShowPlayerDialog(playerid,9180,DIALOG_STYLE_LIST,\"Teleportok\",\"Los Santos\\nSan Fierro\\nLas Venturas\",\"Kiválaszt\",\"Kilép\");
   return 1;
}
return 0;
}
////////////////////////////////////////
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 9180)
{
    if(response)
    {
        if(listitem == 0) //1. sort választja..
        {
          ShowPlayerDialog(playerid,9181,DIALOG_STYLE_LIST,\"Teleportok\",\"Alap\\nReptér\\nMagasles\\nGroove Street\",\"Kiválaszt\",\"Kilép\");
        }
        if(listitem == 1) //2. sort választja..
        {
           ShowPlayerDialog(playerid,9182,DIALOG_STYLE_LIST,\"Teleportok\",\"Alap\\nReptér\\nVidámpark\",\"Kiválaszt\",\"Kilép\");
        }
            if(listitem == 2) //3. sort választja..
        {
          ShowPlayerDialog(playerid,9183,DIALOG_STYLE_LIST,\"Teleportok\",\"Alap\\nReptér\",\"Kiválaszt\",\"Kilép\");
        }
   }
}
if(dialogid == 9181)
{
    if(response)
    {
        if(listitem == 0) //1. sort választja..
        {
          SetPlayerPos(playerid,259.3984,-1229.6013,73.7732);
        }
        if(listitem == 1) //2. sort választja..
        {
           SetPlayerPos(playerid,1952.6499,-2637.2620,13.1161);
        }
            if(listitem == 2) //3. sort választja..
        {
          SetPlayerPos(playerid, 2370, -1852.9, 2.3);
        }
        if(listitem == 3) //4. sort választja..
        {
           SetPlayerPos(playerid,2491.1365,-1685.7610,13.5106);
        }
   }
}
if(dialogid == 9182)
{
    if(response)
    {
        if(listitem == 0) //1. sort választja..
        {
          SetPlayerPos(playerid,-2703.3374,368.6161,4.3892);
        }
        if(listitem == 1) //2. sort választja..
        {
           SetPlayerPos(playerid,-1722.5969, -579.3755, 16.2458);
        }
            if(listitem == 2) //3. sort választja..
        {
          SetPlayerPos(playerid,-2032.5297851563, -100.86155700684, 34.813289642334);
        }
   }
}
if(dialogid == 9183)
{
    if(response)
    {
        if(listitem == 0) //1. sort választja..
        {
          SetPlayerPos(playerid,1959.7703,1343.7137,15.3746);
        }
        if(listitem == 1) //2. sort választja..
        {
           SetPlayerPos(playerid,1318.2029,1284.1371,10.8203);
        }
   }
}
     return 1;
}[/pawn]
Léci segítsetek!
Cím: Dialogos Teleport Gondok
Írta: [HUN]0.3c Scripter - 2011. augusztus 31. - 21:30:49
Sok a hiba hmm....mert ha az Alapra vagy a reptérre ugyan oda teleportál...-.- Ez teli van hibával...
Add le a Koordinátákat és megcsinálom 8)
Cím: Dialogos Teleport Gondok
Írta: TheStaner - 2011. augusztus 31. - 21:50:44
De mitõl nem hozza be? NE A KORDIKKAL FOGLALKOZZ!

Am mond mi a hiba! (Abból nem tanulok hogy más csinálja!)


Mindig a hibáimból tanulok!
Cím: Dialogos Teleport Gondok
Írta: [HUN]0.3c Scripter - 2011. augusztus 31. - 22:22:41
Figyu,amikor irtad a menüt hogy Alap/reptér stb. az nem jó.ha az Alapra,ha a reptérre kattintasz oda teleportál. 8)
Ha Meg akarod csinálni hogy ha a Reptérre Kattintsz és a reptérre teleportáljon kell Koordináta.Minden egyeshen.ez nem ugy megy hogy irunk egy koordinátát és kész ::|
Ehez több Koordináta kell.ezért mondtam hogy megcsinálom ha adnál Koordinátát. 8)
Cím: Dialogos Teleport Gondok
Írta: lusta19 - 2011. augusztus 31. - 22:43:23
#define DIALOG_LS 9181
#define DIALOG_SF 9182
#define DIALOG_LV 9183

 
Ezek egyáltalán minek vannak definiálva?
 
if(listitem == 0)//Tele
   {   SetVehiclePos(GetPlayerVehicleID(playerid), 1482.7450,-1615.9506,14.0393);
      SetPlayerPos(playerid,1482.7450,-1615.9506,14.0393);//gyalog ide fogja teleportálni
                new string[128];
                GetPlayerName(playerid, string, sizeof(string));
            format(string, sizeof(string), \"%s Elteleportált Los Santos-ba! (/tele-LS)\", string);
                SendClientMessageToAll(0x00FFFFAA, string);
            }

 
Holnap megnézem jobban mert már hót koma vagyok
Cím: Dialogos Teleport Gondok
Írta: Norby - 2011. augusztus 31. - 22:46:29
Ennek semmi baja müködik :)
Cím: Dialogos Teleport Gondok
Írta: TheStaner - 2011. augusztus 31. - 23:35:55
0.3c Scripter\" post=\"172084\" timestamp=\"1314822161\"]
Figyu,amikor irtad a menüt hogy Alap/reptér stb. az nem jó.ha az Alapra,ha a reptérre kattintasz oda teleportál. 8)
Ha Meg akarod csinálni hogy ha a Reptérre Kattintsz és a reptérre teleportáljon kell Koordináta.Minden egyeshen.ez nem ugy megy hogy irunk egy koordinátát és kész ::|
Ehez több Koordináta kell.ezért mondtam hogy megcsinálom ha adnál Koordinátát. 8)
 
[/quote]
Semmi baja amúgy!

Mondom hogy még nincsen kész csak teszteltem!


Hiba:Bele építettem GM-be és jó lett


Nah zárom a témát!


Üdv:TheStaner