Jump to content
  • 0

problema /startwork


datonato

Question

Salutare, am o problema la /startwork.

Totul merge bine am facut un job trucker dar cand dau sa se creeze tirul nu mi se creeaza dar imi arata dialogul cu rutele care sunt disponibile.

Aveti idee de ce, astept niste pareri de la voi. Tin sa mentionez ca la compilare 0 erori 0 warnings.

Am incercat sa pun cu JobInfo la jSkillVeh1 dar tot asa, de aceea am inlocuit acolo cu id-ul masinii.

    else if(PlayerInfo[playerid][pJob] == 3)  {
        if(PlayerInfo[playerid][pTruckSkill] == 1) JobVehicle[playerid] = CreateVehicle(403, Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
        else if(PlayerInfo[playerid][pTruckSkill] == 2) JobVehicle[playerid] = CreateVehicle(514, Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
        else if(PlayerInfo[playerid][pTruckSkill] == 3) JobVehicle[playerid] = CreateVehicle(515, Pos[0], Pos[1], Pos[2], CarAngle, -1, -1, -1);
    }    

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Exista si skill mai mare decat 3? Sau mai mic decat 1, adica 0?
Ca din codul tau vad ca se creeaza tirul doar in caz ca ai pTruckSkill egal cu 1, 2 sau 3. Daca ai alt skill nu iti creeaza nici un vehicul.

Discord:
! Akan !#6675

Link to comment
Share on other sites

  • 0
Acum 24 minute, Akan a spus:

Exista si skill mai mare decat 3? Sau mai mic decat 1, adica 0?
Ca din codul tau vad ca se creeaza tirul doar in caz ca ai pTruckSkill egal cu 1, 2 sau 3. Daca ai alt skill nu iti creeaza nici un vehicul.

Iti multumesc, am facut cateva teste setand skill-ul la 3 si la 2 si acum merge, iti multumesc ca m-ai salvat

Pace si respect ;3

T/C 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.