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



Errors - NiiRV4N4 - 07.06.2010

pawn Код:
public rumbler(playerid);
{
    for(new i = 0; i < MAX_PLAYERS; i++)
   {
      if(IsPlayerConnected(i) && playerid != i && !IsPlayerNPC(i))
      {
        if (ProxDetectorS(30.0, playerid, i))
            {
              SetPlayerDrunkLevel(i, 3000);
              return 1;
            }
            else
            {
                SetPlayerDrunkLevel(i, 0);
                return 1;
            }
        }
    }
}
Код:
C:\Users\V\Desktop\RoLePlAy\gamemodes\skrp.pwn(46037) : warning 218: old style prototypes used with optional semicolumns
C:\Users\Va\Desktop\RoLePlAy\gamemodes\skrp.pwn(46038) : error 055: start of function body without function header
C:\Users\Vaa\Desktop\RoLePlAy\gamemodes\skrp.pwn(46039) : error 010: invalid function or declaration
C:\Users\\Desktop\RoLePlAy\gamemodes\skrp.pwn(46041) : error 010: invalid function or declaration
C:\Users\\Desktop\RoLePlAy\gamemodes\skrp.pwn(46043) : error 010: invalid function or declaration
C:\Users\\Desktop\RoLePlAy\gamemodes\skrp.pwn(46046) : error 010: invalid function or declaration
C:\Users\Va\Desktop\RoLePlAy\gamemodes\skrp.pwn(46048) : error 010: invalid function or declaration
C:\Users\Va\Desktop\RoLePlAy\gamemodes\skrp.pwn(46051) : error 010: invalid function or declaration



Re: Errors - Norck - 07.06.2010

Instead of
pawn Код:
public rumbler(playerid);
Use
pawn Код:
public rumbler(playerid)//Without ;



Re: Errors - NiiRV4N4 - 08.06.2010

Quote:
Originally Posted by Sinyavski
Instead of
pawn Код:
public rumbler(playerid);
Use
pawn Код:
public rumbler(playerid)//Without ;
I can't believe i missed that. Thanks.