Szerző Téma: Dialog Menüs Teleport errorok  (Megtekintve 953 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Dátum: 2011. Augusztus 03. - 13:13:52 »
0 Show voters
Ujab erorok :S
[pawn]public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
  if(dialogid == 23)
    {
        if(response)
        {
            if(listitem == 0)ShowPlayerDialog(playerid,24,DIALOG_STYLE_LIST,\"Alap Teleportok\",\"Los Santos\\nSan Fierro\\nLast Venturas\\nArea51\\nSkatePark\\nChilliad\",\"Teleport\",\"Cancel\");
            if(listitem == 1)ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,\"Repterek\",\"Los Santos Repülötér\\nSan Fiero Reptér\\nLast Venturas Reptér\\nRégi Reptér\",\"Teleport\",\"Cancel\");
            if(listitem == 2)ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,\"Driftek\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\nDrift5\",\"Teleport\",\"Cancel\");
        }
        return 1;
    }
   if(dialogid == 24)
   {
      if(response == 1)
      {
         switch(listitem)
         {
            case 0:
            {
   new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2496.4656,-1669.8828,13.3359);
    } else {
    SetPlayerPos(playerid,2496.4656,-1669.8828,13.3359);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s Los Santos városhoz teleportált!\", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
            }
            case 1: {
               SendClientMessage(playerid, 0x0080FFFF, \"Üdv, a San Fierro városában!\");
    new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-1970.5830,287.8890,35.1719);
    } else {
    SetPlayerPos(playerid,-1970.5830,287.8890,35.1719);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s San Fierro-hoz teleportált!\", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
            }
            case 2: {
    new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),2086.6035,1683.4514,10.8203);
    } else {
    SetPlayerPos(playerid,2086.6035,1683.4514,10.8203);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s Las Venturas-hoz teleportált! \", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
    }
    case 3: {
        new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid), 201.9920,1897.7946,17.6406);
    } else {
    SetPlayerPos(playerid, 201.9920,1897.7946,17.6406);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s area 51 hez teleportált! \", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
            }
     case 4:{
    new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid), 1914.2083,-1441.6256,13.5225);
    } else {
    SetPlayerPos(playerid, 1914.2083,-1441.6256,13.5225);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s skateparkhoz teleportált! \", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
    }
    case 5: {
        new pName[MAX_PLAYER_NAME], string[256];
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),-2305.4172,-1656.9608,483.6725);
    } else {
    SetPlayerPos(playerid,-2305.4172,-1656.9608,483.6725);
    }
    SetPlayerInterior(playerid, 0);
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), \"[TELE]: %s Mount Chilliad-ra teleportált!\", pName);
    SendClientMessageToAll(COLOR_GREEN, string);
    }
        }
      }
   }
   return 1;
}
 if(dialogid == 25)
   {
      if(response == 1)
      {
         switch(listitem)
         {
            case 0:
            {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerInterior(playerid, 0);
    SetVehiclePos(GetPlayerVehicleID(playerid),1412.8171,-2435.1362,13.5766);
    } else {
    SetPlayerPos(playerid,1412.8171,-2435.1362,13.5766);
    SetPlayerInterior(playerid, 0);
    }
case 1:
{
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerInterior(playerid, 0);
    SetVehiclePos(GetPlayerVehicleID(playerid),-1567.6731,-179.2296,14.1484);;
    } else {
    SetPlayerInterior(playerid, 0);
    SetPlayerPos(playerid,-1567.6731,-179.2296,14.1484);
    }
    case 2:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetPlayerInterior(playerid, 0);
    SetVehiclePos(GetPlayerVehicleID(playerid),1529.6984,1799.4802,10.8344);
    } else {
    SetPlayerPos(playerid,1529.6984,1799.4802,10.8344);
    SetPlayerInterior(playerid, 0);
    SetPlayerFacingAngle(playerid, 301.5956);
    }
    case 3:
    {
    if(IsPlayerInAnyVehicle(playerid))
    {
    SetVehiclePos(GetPlayerVehicleID(playerid),373.8240,2472.2849,16.4844);
    } else {
    SetPlayerPos(playerid,373.8240,2472.2849,16.4844);
    }
    SetPlayerInterior(playerid, 0);
    SetPlayerFacingAngle(playerid, 301.5956);
    }
        }
      }
   }
   return 1;
}[/pawn]
ERROROK:
 
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(500) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(502) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(504) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(506) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(508) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(512) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(516) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(518) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(522) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(526) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(528) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(532) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(537) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(539) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(542) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(551) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
 
16 Errors.
« Utoljára szerkesztve: 2011. Augusztus 03. - 14:54:13 írta instant »

Nem elérhető Norby

  • 1575
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #1 Dátum: 2011. Augusztus 03. - 13:26:14 »
0 Show voters
Szerintem próbáld igy :
 
case 0: ShowPlayerDialog(playerid, 24, DIALOG_STYLE_LIST, Alap Teleportok\",\"Los Santos\\nSan Fierro\\nLast Venturas\\nArea51\\nSkatePark\\nChilliad\\nGlen Park\",\"Teleport\",\"Cancel\");

Nem elérhető Csabesz

  • 7827
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #2 Dátum: 2011. Augusztus 03. - 13:30:27 »
0 Show voters
A parancsot hogy a fenébe írhattad bele az -OnDialogResponse eljárásba?

Nem elérhető Norby

  • 1575
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #3 Dátum: 2011. Augusztus 03. - 13:33:16 »
0 Show voters
Tessék :
 
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 23)
    {
        if(response)
        {
            if(listitem == 0)ShowPlayerDialog(playerid,24,DIALOG_STYLE_LIST,\"Alap Teleportok\",\"Los Santos\\nSan Fierro\\nLast Venturas\\nArea51\\nSkatePark\\nChilliad\\nGlen Park\",\"Teleport\",\"Cancel\");
            if(listitem == 1)ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,\"Repterek\",\"Los Santos Repülötér\\nSan Fiero Reptér\\nLast Venturas Reptér\\nRégi Reptér\",\"Teleport\",\"Cancel\");
            if(listitem == 2)ShowPlayerDialog(playerid,25,DIALOG_STYLE_LIST,\"Driftek\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\nDrift5\",\"Teleport\",\"Cancel\");
        }
        return 1;
    }
   
if(dialogid == 24)
{
if(response == 1)
{
   switch(listitem)
   {
      case 0:
      {
         SendClientMessage(playerid, 0x0080FFFF, \"Üdv, a Los Santos városában!\");
         SetPlayerPos(playerid, 1359.3395, -1751.7915, 13.3702);
         SetPlayerFacingAngle(playerid, 83.8583);
      }
      case 1: {
         SendClientMessage(playerid, 0x0080FFFF, \"Üdv, a San Fierro városában!\");
         SetPlayerPos(playerid, -1979.9015, 143.4373, 39.8510);
         SetPlayerFacingAngle(playerid, 84.4596);
      }
      case 2: {
         SendClientMessage(playerid, 0x0080FFFF, \"Üdv, a Las Venturas városában!\");
         SetPlayerPos(playerid, 2348.6672,1392.4800,49.8358);
         SetPlayerFacingAngle(playerid, 357.6674);
      }
   }
}
}
return 1;
}
CMD:teles(playerid,params[])
{
ShowPlayerDialog(playerid,23,DIALOG_STYLE_LIST,\"Teleportok\",\"AlapTeleportok\\nRepterek\\nDriftek\",\"Teleportálok\",\"Kilépek\");
return 1;
}

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #4 Dátum: 2011. Augusztus 03. - 13:35:00 »
0 Show voters
Idézetet írta: Roni date=1312371027\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"10139\" data-ipsquote-contentclass=\"forums_Topic
A parancsot hogy a fenébe írhattad bele az OnDialogResponse eljárásba?
 
azok alá irtam :D

Dupla hozzászólás automatikusan összefûzve. ( 2011. Augusztus 03. - 13:36:02 )

mindig erroros

Nem elérhető Norby

  • 1575
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #5 Dátum: 2011. Augusztus 03. - 13:39:14 »
0 Show voters
nállam müködött :)
mik az errorok ??

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #6 Dátum: 2011. Augusztus 03. - 13:40:40 »
0 Show voters
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(409) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(411) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(413) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(415) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(421) : error 010: invalid function or declaration
C:\\Documents and Settings\\Penge\\Dokumentumok\\Untitled.pwn(426) : error 010: invalid function or declaration
Pawn compiler 3.2.3664              Copyright (c) 1997-2006, ITB CompuPhase
 
6 Errors.

Nem elérhető Norby

  • 1575
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #7 Dátum: 2011. Augusztus 03. - 13:41:40 »
0 Show voters
de amit én oda irtam azt másold be cseréld le a régivel. :)
Nállam hiba nélkül megy te rontasz el valamit :)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Dialog Menüs Teleport errorok
« Válasz #8 Dátum: 2011. Augusztus 03. - 13:43:09 »
0 Show voters
WebSite link=topic=14108.msg161859#msg161859 date=1312371700]
de amit én oda irtam azt másold be cseréld le a régivel. :)
Nállam hiba nélkül megy te rontasz el valamit :)
az meglehet xD
[/quote]

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal