SA-MP Forums Archive
In need of help with several small 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: In need of help with several small errors. (/showthread.php?tid=139219)



In need of help with several small errors. - Ragidon - 04.04.2010

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;
  }
}



Re: In need of help with several small errors. - Beaver07 - 04.04.2010

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

this is just a guess tho


Re: In need of help with several small errors. - MadeMan - 04.04.2010

Show the code before line 932.