Errors
#1

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
Reply
#2

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

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.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)