Szerző Téma: [HELP]6 error  (Megtekintve 920 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[HELP]6 error
« Dátum: 2011. Június 30. - 21:33:11 »
0 Show voters
Csõ all ebbe megmondanátok mi a hiba ?
[pawn]#include <a_samp>
#include <zcmd>
#define DIALOGID 1500
#define DSL   DIALOG_STYLE_LIST
CMD:teles(playerid)
{
ShowPlayerDialog(playerid,DIALOGID,DSL,\"Teleport menü!\",\"Teleportok1\\nStuntok\\nDrift\\nEgyéb\\nBigjumpok\",\"Kiválaszt\",\"Cancel\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid = DIALOGID)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,DIALOGID+1,DSL,\"Teleportok1:\",\"LS\\nSF\\LV\\LS-Reptér\\nSf-reptér\\nLv-reptér\\nOldair\",\"Teleport\",\"Cancel\");
}
if(listitem == 1)
{
ShowPlayerDialog(playerid,DIALOGID+2,DSL,\"Stuntok\",\"DeadStunt\\nxStunt\\nSkatepark\\nRace\\nSpeed\\nSkroad\\nSumo\\nChilload\\nStunt1\\nStunt2\\nParkour3\",\"Teleport\",\"Cancel\");
}
if(listitem == 2);
{
ShowPlayerDialog(playerid,DIALOGID+3,DSL,\"Driftek\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\Drift5\",\"Teleport\",\"Cancel\");
}
return 1;
}[/pawn]
 
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(17) : warning 211: possibly unintended assignment
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(23) : error 027: invalid character constant
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(23) : error 027: invalid character constant
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(29) : error 036: empty statement
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(31) : error 027: invalid character constant
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(31) : error 027: invalid character constant
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(33) : warning 217: loose indentation
C:\\Documents and Settings\\Penge\\Asztal\\teles.pwn(37) : warning 209: function \"OnDialogResponse\" should return a value
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase
 
5 Errors.

ami kell még majd hozzá azt csinom holnap :D mer ma már nem fogom vagy de ? :D
« Utoljára szerkesztve: 2011. Június 30. - 22:11:41 írta instant »

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
[HELP]6 error
« Válasz #1 Dátum: 2011. Június 30. - 23:17:21 »
0 Show voters
[pawn]#include <a_samp>
#include <zcmd>
#define DIALOGID 1500
#define DSL   DIALOG_STYLE_LIST
CMD:teles(playerid)
{
ShowPlayerDialog(playerid,DIALOGID,DSL,\"Teleport menü!\",\"Teleportok1\\nStuntok\\nDrift\\nEgyéb\\nBigjumpok\",\"Kiválaszt\",\"Cancel\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[ ])
{
if(dialogid = DIALOGID)
{
   if(response)
   {
      if(listitem == 0)
      {
         ShowPlayerDialog(playerid,DIALOGID+1,DSL,\"Teleportok1:\",\"LS\\nSF\\LV\\LS-Reptér\\nSf-reptér\\nLv-reptér\\nOldair\",\"Teleport\",\"Cancel\");
      }
      if(listitem == 1)
      {
         ShowPlayerDialog(playerid,DIALOGID+2,DSL,\"Stuntok\",\"DeadStunt\\nxStunt\\nSkatepark\\nRace\\nSpeed\\nSkroad\\nSumo\\nChilload\\nStunt1\\nStunt2\\nParkour3\",\"Teleport\",\"Cancel\");
      }
      if(listitem == 2)
      {
         ShowPlayerDialog(playerid,DIALOGID+3,DSL,\"Driftek\",\"Drift1\\nDrift2\\nDrift3\\nDrift4\\Drift5\",\"Teleport\",\"Cancel\");
      }
   }
}
return 0;
}[/pawn]

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
[HELP]6 error
« Válasz #2 Dátum: 2011. Július 01. - 08:00:52 »
0 Show voters
köszi star

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal