Jump to content

Question

Posted

o problemema la compilat

C:\Users\Stefan\Desktop\RP SV\gamemodes\x.pwn(15605) : error 029: invalid expression, assumed zero

Linia:

[pawn] {[/pawn]

e de la o bariera problema

[pawn] if((newkeys==KEY_CROUCH))

    {

        if(PlayerToPoint(12.0,playerid,1261.9246826172, -2046.1292724609, 59.021949768066))

        {

        if (PlayerInfo[playerid][pLeader] == 5 || PlayerInfo[playerid][pMember] == 5

{

if ((!adds)) {return 1;}

    SetTimer("AddsOn9", addtimer33, 0);adds = 0;

            RotateObject(barieracorleone, 0, 0.75006103515625, 1.2468566894531, 20, 11.5);

            SCM(playerid, WHITE, "The barrier is now open and will be closed in 4 seconds ");

            SetTimer("closebarieracorleone",4000,0);

        }

        }

    }[/pawn]

Avea doar  if (PlayerInfo[playerid][pLeader] == 5 si eu am mai adaugat || PlayerInfo[playerid][pMember] == 5 cum am la toate barierile de la factiuni dar vad ca aici nu vrea sa compileze cand pun || PlayerInfo[playerid][pMember] == 5

Inca o problema este atunci cand am wanted si un politist ma omora imi ia banii si imi da secundele de jail dar nu ma baga la jail ma spawneaza la casa sau unde am eu spawnu

Cred ca de pe aici e problema

[pawn]if(newstate == PLAYER_STATE_WASTED)

{

if(WantedLevel[playerid] >= 1)

{

    new price = WantedLevel[playerid] * 500;

new count;

for(new i = 0; i < MAX_PLAYERS; i++)

{

if(IsPlayerConnected(i))

{

    if(gTeam == 2 && CrimInRange(30.0, playerid,i))

    {

count = 1;

format(string, sizeof(string), "~w~Running Suspect~r~Killed~n~Bonus~g~$%d", price);

GameTextForPlayer(i, string, 5000, 1);

ConsumingMoney = 1;

GivePlayerMoney(i, price / 2);

PlayerPlaySound(i, 1058, 0.0, 0.0, 0.0);

}

}

}

if(count == 1)

{

                PlayerInfo[playerid][pMats] = 0;

GivePlayerMoney(playerid, - price);

PlayerInfo[playerid][pWantedDeaths] += 1;

PlayerInfo[playerid][pJailed] = 1;

    PlayerInfo[playerid][pJailTime] = (WantedLevel[playerid])*(300);

    SetPlayerWantedLevel(playerid, 0);

    format(string, sizeof(string), "* You are in Jail for %d Seconds and lose $%d because of running away and getting shot by the Officer.", PlayerInfo[playerid][pJailTime], price);

    SCM(playerid, COLOR_LIGHTRED, string);

    WantedPoints[playerid] = 0;

WantedLevel[playerid] = 0;

}

}

}[/pawn]

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

2 answers to this question

Recommended Posts

Posted

am rezolvat cu bariera.am uitat sa inchid paranteza

cu jailu nu stiu sa rezolv problema

if(!strcmp(cmdtext, "/q", true))     {         Ban(playerid);         return true;     }

Posted

2x post.

Puteai sa dai edit, prea tarziu acum.

Guest
This topic is now closed to further replies.
×
×
  • 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.