Jump to content

Alexandru

Membru
  • Posts

    12
  • Joined

  • Last visited

    Never

Posts posted by Alexandru

  1. Pai gm e de pe net :| si numi apare ala Info: Personal House Level ... alea numi apare

    La systemu de case e asa :|

    public OnGameModeInit()

    [pawn] for(new h = 0; h < sizeof(HouseInfo); h++)

    {

    if(HouseInfo[h][hOwned] == 0)

            {

              format(string, sizeof(string), "{FFFFFF}For Sale \n {FFFFFF}Info: {33CC33}%s \n {FFFFFF}Cost: {4066BF}%d$ \n {FFFFFF}Level: {33CC33}%d \n {FFFFFF}Scrie {FF0000}/buyhouse.",HouseInfo[h][hDiscription],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

      HouseLabel[h] = Create3DTextLabel(string ,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15, 0, 1);

        }

    if(HouseInfo[h][hOwned] == 1)

    if(HouseInfo[h][hRentabil] == 0)

    {

        format(string, sizeof(string), "{FFFFFF}Info: {33CC33}%s \n {FFFFFF}Proprietar: {33CC33}%s \n {FFFFFF}Cost: {4066BF}%d$ \n {FFFFFF}Level: {33CC33}%d\n {FFFFFF}Foloseste tasta [{E42217}F{F7FAF9}] sau [{E42217}ENTER{F7FAF9}] pentru a intra.",HouseInfo[h][hDiscription],HouseInfo[h][hOwner],HouseInfo[h][hValue],HouseInfo[h][hLevel]);

        HouseLabel[h] = Create3DTextLabel(string ,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15, 0, 1);

    }

    else

    {

    format(string, sizeof(string), "{FFFFFF}Info: {33CC33}%s \n {FFFFFF}Proprietar: {33CC33}%s \n {FFFFFF}Cost: {4066BF}%d$ \n {FFFFFF}Level: {33CC33}%d \n {FFFFFF}Rent: {4066BF}$%d \n {FFFFFF}Scrie {FF0000}/rentroom \n {FFFFFF}Foloseste tasta [{E42217}F{F7FAF9}] sau [{E42217}ENTER{F7FAF9}] pentru a intra.",HouseInfo[h][hDiscription],HouseInfo[h][hOwner],HouseInfo[h][hValue],HouseInfo[h][hLevel],HouseInfo[h][hRent]);

        HouseLabel[h] = Create3DTextLabel(string ,0x006400FF,HouseInfo[h][hEntrancex], HouseInfo[h][hEntrancey], HouseInfo[h][hEntrancez]+1,15, 0, 1);

    }

    }

    for(new h = 0; h < sizeof(BizzInfo); h++)

    {

    if(BizzInfo[h][bOwned] == 1)

    {

                format(string, sizeof(string), "{04E2FB}%s\n Proprietar: %s\n Extortion by : %s\n Entrance Fee : %d$\n Level : %d\n {F7FAF9}Foloseste tasta [{E42217}F{F7FAF9}] sau [{E42217}ENTER{F7FAF9}] pentru a intra.",BizzInfo[h][bMessage],BizzInfo[h][bOwner],BizzInfo[h][bExtortion],BizzInfo[h][bEntranceCost],BizzInfo[h][bLevel]);

    BizzLabel[h] = Create3DTextLabel(string,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);

    BizzPickup[h] = CreateDynamicPickup(1314, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

    }

    else

    {

                format(string, sizeof(string), "[sALE]\n$ %d",BizzInfo[h][bPrice]);

    BizzLabel[h] = Create3DTextLabel(string,0x8361FFFF,BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]+1,15,0,1);

    BizzPickup[h] = CreateDynamicPickup(1272, 1, BizzInfo[h][bEntranceX], BizzInfo[h][bEntranceY], BizzInfo[h][bEntranceZ]);

    }

    }

    for(new h = 0; h < sizeof(SBizzInfo); h++)

    {

    if(SBizzInfo[h][sbOwned] == 1)

    {

    format(string, sizeof(string), "{04E2FB}%s\n Proprietar: %s\n Extortion by : %s\n Entrance Fee: %d$\n Level : %d\n {F7FAF9}Foloseste tasta [{E42217}F{F7FAF9}] sau [{E42217}ENTER{F7FAF9}] pentru a intra.",SBizzInfo[h][sbMessage],SBizzInfo[h][sbOwner],SBizzInfo[h][sbExtortion],SBizzInfo[h][sbEntranceCost],SBizzInfo[h][sbLevel]);

    SBizzLabel[h] = Create3DTextLabel(string,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);

    SBizzPickup[h] = CreateDynamicPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

    }

    else

    {

    format(string, sizeof(string), "[sALE]\n$ %d",SBizzInfo[h][sbPrice]);

    SBizzLabel[h] = Create3DTextLabel(string,0x8361FFFF,SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]+1,15,0,1);

    SBizzPickup[h] = CreateDynamicPickup(1272, 1, SBizzInfo[h][sbEntranceX], SBizzInfo[h][sbEntranceY], SBizzInfo[h][sbEntranceZ]);

    }

    }[/pawn]

  2. Pai imi da o eroare uitati erorile:

    [pawn]C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(55) : warning 217: loose indentation

    C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(69) : error 017: undefined symbol "PlayerMissioned"

    C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(69) : warning 215: expression has no effect

    C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(69) : error 001: expected token: ";", but found "]"

    C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(69) : error 029: invalid expression, assumed zero

    C:\Users\aLex\Desktop\Hard2Games Bacau\gamemodes\misiuni.pwn(69) : fatal error 107: too many error messages on one line

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

    4 Errors.

    [/pawn]

    Liniile:

    [pawn]public OnPlayerCommandText(playerid, cmdtext[])

    {

      new cmd[6];

      if(strcmp(cmd,"/mission",true)==0)

        {

            if(IsPlayerConnected(playerid))

            {

            if(!PlayerToPoint(3.0,playerid,1381.0413,-1088.8511,27.3906))

            {

                SCM(playerid, 0xC0C0C0FF, "  You are not at the Bill Board !");

                return 1;

            }

            if(PlayerMissioned[playerid] == -1)

            {

                    SendClientMessage(playerid,0x3399FFFF,"Poti face misiunea o data la 3 ore!");

                    return 1;

                }

                ShowPlayerDialog(playerid,998,DIALOG_STYLE_LIST,""0x3399FFFF"Misiuni","1.Easy \n2.Medium \n3.Hard \n4.Expert","Alege","Iesi");

          }

            SetTimerEx("ResetMission", 1080000, 0, "d", playerid);

            PlayerMissioned[playerid] = -1;

    return 1;

    }

    return 0;

    }[/pawn]

    Aici codu unde imi da eroarea aforisita...

    [pawn]        if(PlayerMissioned[playerid] == -1)  /* Aici imi da eroarea */

            {

                    SendClientMessage(playerid,0x3399FFFF,"Poti face misiunea o data la 3 ore!");

                    return 1;

                }[/pawn]

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.