SA-MP Forums Archive
help - 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: help (/showthread.php?tid=155403)



help - Zero[S] - 18.06.2010

C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(2713) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(292 : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26269) : warning 217: loose indentation
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26306) : warning 209: function "OnDialogResponse" should return a value
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26307) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26309) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26311) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26313) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26319) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26325) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26330) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26333) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26335) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26337) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26339) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26345) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26351) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26357) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26363) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26369) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26375) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26381) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26387) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26393) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26399) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26405) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26411) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26417) : error 010: invalid function or declaration
C:\Documents and Settings\User\Desktop\SA-MP Server\gamemodes\GM.pwn(26423) : error 010: invalid function or declaration

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


26 Errors.

Im make dialog login register plizz help


Re: help - Chrisspartan - 18.06.2010

Post your code so we can fix it.
EDITh its too big,can you just post the lines with the errors?


Re: help - Zero[S] - 18.06.2010

http://pastebin.com/rtJgzzz2


Re: help - Zero[S] - 18.06.2010

help


Re: help - aircombat - 18.06.2010

its a missing bracket , i'm sure of that


Re: help - VirSpectorX - 18.06.2010

Try this, it's not tested, but might work...
pawn Код:
if(PlayerInfo[playerid][pFMember] != 255)
        {
          new family = PlayerInfo[playerid][pFMember];
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
          SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
          SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
          return 1;
        }
      else
      {
            SetPlayerToTeamColor(playerid);
            if(PlayerInfo[playerid][pOrigin] == 1)//USA
            {
              SetPlayerPos(playerid,-2721.2612,-317.8447,7.8438);
                SetPlayerFacingAngle(playerid, 46.8583);
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
            }
into

pawn Код:
if(PlayerInfo[playerid][pFMember] != 255)
        {
          new family = PlayerInfo[playerid][pFMember];
          SetPlayerToTeamColor(playerid);
          SetPlayerInterior(playerid, FamilyInfo[family][FamilyInterior]);
          SetPlayerPos(playerid, FamilyInfo[family][FamilySpawn][0],FamilyInfo[family][FamilySpawn][1],FamilyInfo[family][FamilySpawn][2]);
          SetPlayerFacingAngle(playerid, FamilyInfo[family][FamilySpawn][3]);
          return 1;
        }
      }
      else
      {
            SetPlayerToTeamColor(playerid);
            if(PlayerInfo[playerid][pOrigin] == 1)//USA
            {
              SetPlayerPos(playerid,-2721.2612,-317.8447,7.8438);
                SetPlayerFacingAngle(playerid, 46.8583);
                SetPlayerInterior(playerid,0);
                PlayerInfo[playerid][pInt] = 0;
            }
And, the Loose Indentation is just a warning. You don't need to deal with it... It's just because you indent them wrongly, but it still can be compiled