Jump to content
Autentificarea cu Google și Facebook nu mai este disponibilă. ×

Question

Posted

 

Problema intalnita (descriere):Am adaugat jobul ,,taietor de lemne '' si am 4 erori .
Ero(area / rile) / warning-(ul / urile):

(2254) : error 012: invalid function call, not a valid address
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : warning 215: expression has no effect
(2254) : error 001: expected token: ";", but found ")"
(2254) : error 029: invalid expression, assumed zero
(2254) : fatal error 107: too many error messages on one line
Liniile de cod / sursa / script-ul(obligatoriu):am pus
Imagini / Video (optional):-
Ati incercat sa rezolvati singur?:Da

P.S am nevoie de includeul a_objects stie cineva de unde sa il iau ?

 

    else if(JobStep[playerid] == 8 && IsPlayerInRangeOfPoint(playerid, 1, -175.6063, -1553.3492, 6.0876))
        {
            DisablePlayerCheckpoint(playerid);
            TogglePlayerControllable(playerid, 0);
            timecut[playerid] = SetTimerEx("TimeCut",5000,false,"i", playerid);
        }
        else if(JobStep[playerid] == 9 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
        {
            DisablePlayerCheckpoint(playerid);
            if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
            SetPlayerCheckpoint(playerid, -115.7137, -1496.6042, 3.1475, 1.0);
            JobStep[playerid] = 10;
        }
        else if(JobStep[playerid] == 10 && IsPlayerInRangeOfPoint(playerid, 1, -115.7137, -1496.6042, 3.1475))
        {
            DisablePlayerCheckpoint(playerid);
            TogglePlayerControllable(playerid, 0);
            timecut[playerid] = SetTimerEx("TimeCut",5000,false,"i", playerid);
        }
        else if(JobStep[playerid] == 11 && IsPlayerInRangeOfPoint(playerid, 2, -103.7549, -1546.4635, 2.6107))
        {
            DisablePlayerCheckpoint(playerid);
             if(IsPlayerAttachedObjectSlotUsed(playerid,1)) RemovePlayerAttachedObject(playerid,1);
              vObject[playerid] = CreatePlayerObject(playerid, 18609, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 0.00000, 300.0);
            AttachPlayerObjectToVehicle(playerid, vObject[playerid], masina[playerid], -0.06195, -4.93747, 0.73480, 0.00000, 0.00000, 5.00000);
            SendClientMessage(playerid, 0xFFFF00C8, "Pentru a temrina munca urca-te in masina si du-te la depozit pentru a lasa lemnele.");
            SetPlayerCheckpoint(playerid, 993.7037, -2177.4839, 13.0938, 5);
            JobStep[playerid] = 12;
        }
    }
    return 1;
}

 

eroare la : AttachPlayerObjectToVehicle(playerid, vObject[playerid], masina[playerid], -0.06195, -4.93747, 0.73480, 0.00000, 0.00000, 5.00000);

2 answers to this question

Recommended Posts

  • 0
Posted

Ai aici a_objects.inc :

http://www52.zippyshare.com/v/XbpVc1qY/file.html

Pentru AttachObjectToVehicle -

 https://wiki.sa-mp.com/wiki/AttachObjectToVehicle

Si posteaza liniile de la 2250 la 2255 pentru ai uitat sa pui ";" si alte erori.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • 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.