Jump to content

Question

Atunci cand apas tasta "N" imi spune Ai bagat mancarea in... si imi scoate obiectul si animatia dar nu imi seteaza un checkpoint si nici nu-mi trimite * Du-te la punctul rosu de pe mapa pentru a primi banii. Distanta: %0.1fm...



if(newkeys & KEY_NO) {
        if(Nelu2[playerid] == 1) {
            SCM(playerid, -1, "Ai bagat mancarea in ghiozdan!");
            Nelu2[playerid] = 0;
            RemovePlayerAttachedObject( playerid, 0 ); SetPlayerSpecialAction( playerid, 0 );
            new j = random(housess)+1;
            SetPlayerCheckpointEx(playerid, HouseInfo[j][hEntrancex],HouseInfo[j][hEntrancey],HouseInfo[j][hEntrancez], 7.0);
            format(string, sizeof(string), "* Du-te la punctul rosu de pe mapa pentru a primi banii. Distanta: %0.1fm", GetPlayerDistanceFromPoint(playerid, HouseInfo[j][hEntrancex],                  HouseInfo[j][hEntrancey], HouseInfo[j][hEntrancez]));
            SCM(playerid, COLOR_YELLOW, string);
            CP[playerid] = 157;
        }

}
Help??

Link to post
Share on other sites

7 answers to this question

Recommended Posts

  • 0
On 5/25/2021 at 1:37 PM, iSkull said:

crashdetect?

functia SetPlayerCheckpointEx?

Nu era bun crash detect, uite eroarea care mi apare
image.thumb.png.e607fe021bf540ba802d13aacaab0061.png

linia e asta
image.thumb.png.ca81fabfd9cada70573ff66b8a1dc043.png

Link to post
Share on other sites
  • 0
21 hours ago, iSkull said:

Îți iese din array, crash detect este mereu bun, trebuie doar configurat corect

si cum pot sa il rezolv, scuze dar sunt incepator

Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

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