SA-MP Forums Archive
Errors cant get rid of - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Errors cant get rid of (/showthread.php?tid=127016)



Errors cant get rid of - Torran - 11.02.2010

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


Re: Errors cant get rid of - Correlli - 11.02.2010

How about if you count your starting and ending brackets?


Re: Errors cant get rid of - Torran - 11.02.2010

Not sure what you mean


Re: Errors cant get rid of - Correlli - 11.02.2010

{ - starting bracket
} - ending bracket

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


Re: Errors cant get rid of - Torran - 11.02.2010

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


Re: Errors cant get rid of - Onyx09 - 11.02.2010

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


Re: Errors cant get rid of - Torran - 11.02.2010

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


Re: Errors cant get rid of - Onyx09 - 11.02.2010

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


Re: Errors cant get rid of - Torran - 11.02.2010

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)


Re: Errors cant get rid of - Onyx09 - 11.02.2010

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