In need of help with several small errors.
#1

Quote:

Minigames.pwn(932) : warning 217: loose indentation
Minigames.pwn(932) : error 029: invalid expression, assumed zero
Minigames.pwn(932) : error 017: undefined symbol "cmd_derby"
Minigames.pwn(932) : error 029: invalid expression, assumed zero
Minigames.pwn(932) : fatal error 107: too many error messages on one line

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


4 Errors.

My lines 932 'till 972:
pawn Код:
CMD:derby(playerid, params[])
{
      if(derbyplaying == 1)
    {
        SendClientMessage(playerid, 0xB4B5B7AA, "The derby is already started");
        return 1;
    }
    if(playerinminigame[playerid] == 1)
    {
    SendClientMessage(playerid, 0xB4B5B7AA, "You are already in a minigame");
    return 1;
    }
    if(derbyon == 1 && derbyrank < 15)
    {
        playerinminigame[playerid] = 1;
    playerinderby[playerid] = 1;
    derbyrank++;
    SetPlayerInterior(playerid,15);
    for(new i=0; i<15; i++)
        {
        if(bloodringfull[i] == 0)
        {
            SetPlayerVirtualWorld(playerid,7);
            SetVehicleVirtualWorld(bloodring[i],7);
            bloodringfull[i] = 1;
            PutPlayerInVehicle(playerid, bloodring[i], 0);
            TogglePlayerControllable(playerid, 0);
            playerinbloodring[playerid] = i;
            format(string, sizeof(string), "%s has joined the derby", pname);//
                SendClientMessageToAll(0x33AA33AA,string);
                return 1;
            }
       }
  }
    else if(derbyon == 1 && derbyrank >= 15)
  {
      format(string, sizeof(string), "The derby is full, wait for the next round", pname);//
      SendClientMessage(playerid,0x33AA33AA,string);
      return 1;
  }
}
Reply
#2

CMD:derby(playerid, params[]) needs to be cmd_derby(playerid, params[])

this is just a guess tho
Reply
#3

Show the code before line 932.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)