Errors cant get rid of
#1

pawn Код:
if(dialogid == 2)
    {
        if(response)
        {
          if(!strcmp(inputtext,"2598",true))
          {
            FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
        SetTimerEx("HotelRoom2598", 2000, 0, "i", playerid);
            }
            if(!strcmp(inputtext,"exit",true))
            {
              FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
        SetTimerEx("HotelRoom2598Ex", 2000, 0, "i", playerid);
            }
        }
        else
        {
          ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rooms","Heres a list of rooms in the hotel \nRoom 2598 - En' Suite","Close","");
    }
        return 1;
    }

Код:
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(34) : warning 217: loose indentation
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(36) : warning 217: loose indentation
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(39) : warning 217: loose indentation
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(39) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(39) : error 004: function "OnDialogResponse" is not implemented
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(41) : error 017: undefined symbol "dialogid"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(43) : error 017: undefined symbol "response"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(52) : error 017: undefined symbol "dialogid"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(54) : error 017: undefined symbol "response"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(56) : error 017: undefined symbol "inputtext"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(61) : error 017: undefined symbol "inputtext"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(76) : warning 225: unreachable code
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(76) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(76) : error 017: undefined symbol "HotelRoom2598"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(77) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(77) : error 017: undefined symbol "HotelRoom2598"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(85) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(85) : error 017: undefined symbol "HotelRoom2598Text"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(86) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(86) : error 017: undefined symbol "HotelRoom2598Text"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(91) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(91) : error 017: undefined symbol "HotelRoom2598Ex"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(92) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(92) : error 017: undefined symbol "HotelRoom2598Ex"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(100) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(100) : error 017: undefined symbol "HotelRoom2598TextEx"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(101) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(101) : error 017: undefined symbol "HotelRoom2598TextEx"
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(106) : error 029: invalid expression, assumed zero
C:\Users\Torran\Documents\Server Stuff\Main\Filterscripts\hotel.pwn(106) : error 004: function "OnPlayerConnect" is not implemented

Compilation aborted.Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


26 Errors.
If i add a bracket some go but the ones to do with the dialog are still there
Reply
#2

How about if you count your starting and ending brackets?
Reply
#3

Not sure what you mean
Reply
#4

{ - starting bracket
} - ending bracket

You're missing a bracket in your script, double-check them.
Reply
#5

As i said, if i add one more, Some go, But then no matter how many more brackets i add,
The errors are ALWAYS there
Reply
#6

yeah theres missing brackets sometimes one simple bracket can give you alot of different errors wich arent necesarry to fix
it just because of one bracket
Reply
#7

Quote:
Originally Posted by [GM
LeGenDy ]
yeah theres missing brackets sometimes one simple bracket can give you alot of different errors wich arent necesarry to fix
it just because of one bracket
Eh, Where? If i add one at the bottom, Some go, But others stay and wont go whatever i do
Reply
#8

Quote:
Originally Posted by Torran
As i said, if i add one more, Some go, But then no matter how many more brackets i add,
The errors are ALWAYS there
Код:
if(dialogid == 2)
{
if(response)
{
  if(!strcmp(inputtext,"2598",true))
  {
       FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
       SetTimerEx("HotelRoom2598", 2000, 0, "i", playerid);
  }
}
if(!strcmp(inputtext,"exit",true))
{
   FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
   SetTimerEx("HotelRoom2598Ex", 2000, 0, "i", playerid);
}
else
{
  ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rooms","Heres a list of rooms in the hotel \nRoom 2598 - En' Suite","Close","");
}
return 1;
}
there were 2 brackets in bad place and one missing try now
Reply
#9

Quote:
Originally Posted by [GM
LeGenDy ]
Quote:
Originally Posted by Torran
As i said, if i add one more, Some go, But then no matter how many more brackets i add,
The errors are ALWAYS there
Код:
if(dialogid == 2)
{
if(response)
{
  if(!strcmp(inputtext,"2598",true))
  {
       FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
       SetTimerEx("HotelRoom2598", 2000, 0, "i", playerid);
  }
}
if(!strcmp(inputtext,"exit",true))
{
   FadeColorForPlayer(playerid,0,0,0,0,0,0,0,255,15,0);
   SetTimerEx("HotelRoom2598Ex", 2000, 0, "i", playerid);
}
else
{
  ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Rooms","Heres a list of rooms in the hotel \nRoom 2598 - En' Suite","Close","");
}
return 1;
}
there were 2 brackets in bad place and one missing try now
Now theres even more errors, Still a missing/too many bracket(s)
Reply
#10

theres not too many those are the right brackets make sure they all are in their right place so you dont get the warnings
and then its not a bracket problem
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)