SA-MP Forums Archive
>>>....[ PROBLEMS WHIT FEW ERRORS ]...<<< - 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: >>>....[ PROBLEMS WHIT FEW ERRORS ]...<<< (/showthread.php?tid=144046)



>>>....[ PROBLEMS WHIT FEW ERRORS ]...<<< - DarkPower - 25.04.2010

pawn Код:
if(dialogid == 3 && response) // MUSKO ILI ZENSKO
  {

    switch(listitem)
    {
      case 0:
      {
      if(RegistrationStep[playerid] > 0)
        }
      if(RegistrationStep[playerid] == 1)
        }
      PlayerInfo[playerid][pSex] = 1;
      SendClientMessage(playerid, COLOR_YELLOW2, "Znaci musko si, sada nam reci koliko imas godina...");
      ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
          RegistrationStep[playerid] = 2;
      }
      case 1:
      {
      PlayerInfo[playerid][pSex] = 2;
      SendClientMessage(playerid, COLOR_YELLOW2, "Znaci zensko si, sada nam reci koliko imas godina...");
      ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
          RegistrationStep[playerid] = 2;
      }
    }
  }
ERRORS:

Код:
C:\Users\NASTIE\Desktop\LG RPG\gamemodes\gf.pwn(4483) : error 029: invalid expression, assumed zero
C:\Users\NASTIE\Desktop\LG RPG\gamemodes\gf.pwn(4483 -- 4484) : warning 215: expression has no effect
C:\Users\NASTIE\Desktop\LG RPG\gamemodes\gf.pwn(4484) : error 001: expected token: ";", but found "if"
C:\Users\NASTIE\Desktop\LG RPG\gamemodes\gf.pwn(4485) : error 029: invalid expression, assumed zero
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
LINES

pawn Код:
if(RegistrationStep[playerid] > 0)
        }
      if(RegistrationStep[playerid] == 1)
        }



Re: >>>....[ PROBLEMS WHIT FEW ERRORS ]...<<< - ¤Adas¤ - 25.04.2010

pawn Код:
if(dialogid == 3 && response) // MUSKO ILI ZENSKO
  {

    switch(listitem)
    {
      case 0:
      {
      if(RegistrationStep[playerid] > 0)
        {
      if(RegistrationStep[playerid] == 1)
        {
      PlayerInfo[playerid][pSex] = 1;
      SendClientMessage(playerid, COLOR_YELLOW2, "Znaci musko si, sada nam reci koliko imas godina...");
      ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
          RegistrationStep[playerid] = 2;
      }
      }
      case 1:
      {
      PlayerInfo[playerid][pSex] = 2;
      SendClientMessage(playerid, COLOR_YELLOW2, "Znaci zensko si, sada nam reci koliko imas godina...");
      ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
          RegistrationStep[playerid] = 2;
      }
    }
  }
You have probably put wrong brackets?


Re: >>>....[ PROBLEMS WHIT FEW ERRORS ]...<<< - DarkPower - 25.04.2010

nope, but i try this
pawn Код:
if(dialogid == 3 && response)
  {
  switch(listitem)
  {
   case 0:
   {
     if(RegistrationStep[playerid] > 0)
     {
      if(RegistrationStep[playerid] == 1)
      {
        PlayerInfo[playerid][pSex] = 1;
        SendClientMessage(playerid, COLOR_YELLOW2, "Znaci musko si, sada nam reci koliko imas godina...");
        ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
            RegistrationStep[playerid] = 2;
        return 0;
      }
     }
   }
   case 1:
   {
      PlayerInfo[playerid][pSex] = 2;
      SendClientMessage(playerid, COLOR_YELLOW2, "Znaci zensko si, sada nam reci koliko imas godina...");
      ShowPlayerDialog(playerid,4,DIALOG_STYLE_LIST,"Koliko imate godina","14\n15\n16\n17\n18\n19\n20\n21\n22\n23\nVISE","Odaberi","");
          RegistrationStep[playerid] = 2;
      return 0;
    }
   }
  }
its work.... but thanks anywhay