SA-MP Forums Archive
I have an Error - 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: I have an Error (/showthread.php?tid=108398)



I have an Error - Mark k - 13.11.2009

here this is the error:
PHP код:
C:Documents and SettingsIntelDesktopServergamemodesnew.pwn(47322) : error 030compound statement not closed at the end of file (started at line 47304)
Pawn compiler 3.2.3664   Copyright (c1997-2006ITB CompuPhase

1 Error

End here is the public:
PHP код:
public OnDialogResponse(playeriddialogidresponselistiteminputtext[])
{
 if(
dialogid == 0)
 {
 if(
response == 1)
 {
     if(!
strlen(inputtext))
  {
  
SendClientMessage(playerid,COLOR_YELLOW,"[M&M] - You need to put in password");
  
ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"                         Register. - [M&M]","     .ара дчщ аъ сйсоък ббчщд - [RLSB]","дшщод","бйием");
   return 
1;
  }
  if(
strlen(inputtext) > 12 || strlen(inputtext) < 4)
  {
  
SendClientMessage(playerid,COLOR_YELLOW,"[M&M] - The password has to be 4-24 letters or numbers");
  
ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"                         Register. - [M&M]","     .ара дчщ аъ сйсоък ббчщд - [RLSB]","дшщод","бйием");
   return 
1;
  }
  
OnPlayerRegister(playerid,inputtext);
 }
 return 
1;
 }
 else if(
dialogid == 1)
 {
 if(
response == 1)
 {
  if(!
strlen(inputtext))
  {
  
SendClientMessage(playerid,COLOR_YELLOW,"[M&M] - You Have to put a password");
  
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"                       .Login - [M&M]","     .ара дчщ аъ сйсоък ббчщд - [RLSB]","дъзбш","бйием");
   return 
1;
  }
  if(
strlen(inputtext) > 12 || strlen(inputtext) < 4)
  {
  
SendClientMessage(playerid,COLOR_YELLOW,"[M&M] - The password has to be 4-24 letters or numbers");
  
ShowPlayerDialog(playerid,1,DIALOG_STYLE_INPUT,"                       .Login - [M&M]","     .ара дчщ аъ сйсоък ббчщд - [RLSB]","дъзбш","бйием");
   return 
1;
  }
  if(!
strcmp(inputtext,PlayerInfo[playerid][pKey],true))
  {
  
gPlayerLogged[playerid] = 1;
  
SendClientMessage(playerid,COLOR_WHITE,"[M&M] - You are logged in succefully");
  return 
1



Re: I have an Error - Correlli - 13.11.2009

You're missing some brackets.


Re: I have an Error - Mark k - 13.11.2009

Where?


Re: I have an Error - JonyAvati - 13.11.2009

10 opened bracklets and 7 closed. You can use the [ pawn ] YOURSCRIPTHERE [ /pawn ] (Witout spaces) for the highlighting.