Jump to content

[REZOLVAT] Problema Apartamente


qSorin
 Share

Recommended Posts

Username: SorinGamerYT
Problema întălnită: Cand intru intr-un apartanment si dupa vreau sa ies ma da la ultimul apartament facut Ex: Eu intru in apartament cu ID 1 si cand ies ma da la apartament cu ID:4(ultimul apartament) !
Detalii despre problemă: - 
Ce ai încercat să faci înainte să postezi?: Deci am bagat sistemul de apartamente din gm-ul lui Skillz si eu am facut gen ca la case cu exit si intrare !
Cod sursă (recomandat pastebin.com) : https://pastebin.com/4sF554UX
Alte detalii: Si asa am in baza de date !

image.thumb.png.6add8da5d16e024d55a8361120f6bb25.png

Link to comment
Share on other sites

salut vad ca nu te descurci te ajut si eu ce pot, daca ai gm burned sau ori ce gm trebuie sa ai gen : function load_apartaments() {

 

 

iar mai jos ai gen:

for(new i = 0; i < 24; i++)
		apartament_door_status[i] = 0;
	
    apartament_door[0] = CreateDynamicObject(1504, 295.460693, -1622.989990, 63.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[1] = CreateDynamicObject(1505, 275.864990, -1619.536011, 59.494999, 0.000000, 0.000000, 260.000000);
    apartament_door[2] = CreateDynamicObject(1506, 275.864990, -1619.536011, 63.994999, 0.000000, 0.000000, 260.000000);
    apartament_door[3] = CreateDynamicObject(1507, 295.460693, -1622.989990, 59.494999, 0.000000, 0.000000, -100.000000);
    apartament_door[4] = CreateDynamicObject(1504, 275.864990, -1619.536011, 68.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[5] = CreateDynamicObject(1505, 295.460693, -1622.989990, 68.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[6] = CreateDynamicObject(1506, 295.4607, -1622.9900, 72.9950, 0.0000, 0.0000, -100.0000);
    apartament_door[7] = CreateDynamicObject(1507, 295.460693, -1622.989990, 77.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[8] = CreateDynamicObject(1504, 275.864990, -1619.536011, 72.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[9] = CreateDynamicObject(1505, 295.460693, -1622.989990, 81.994995, 0.000000, 0.000000, -100.000000);
    apartament_door[10] = CreateDynamicObject(1506, 275.864990, -1619.536011, 77.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[11] = CreateDynamicObject(1507, 275.864990, -1619.536011, 81.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[12] = CreateDynamicObject(1504, 295.460693, -1622.989990, 86.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[13] = CreateDynamicObject(1505, 275.864990, -1619.536011, 86.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[14] = CreateDynamicObject(1506, 275.864990, -1619.536011, 90.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[15] = CreateDynamicObject(1507, 295.460693, -1622.989990, 90.994995, 0.000000, 0.000000, -100.000000);
    apartament_door[16] = CreateDynamicObject(1504, 295.460693, -1622.989990, 95.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[17] = CreateDynamicObject(1505, 275.864990, -1619.536011, 95.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[18] = CreateDynamicObject(1506, 275.864990, -1619.536011, 54.994999, 0.000000, 0.000000, 260.000000);
    apartament_door[19] = CreateDynamicObject(1507, 295.460693, -1622.989990, 54.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[20] = CreateDynamicObject(1504, 295.460693, -1622.989990, 50.494999, 0.000000, 0.000000, -100.000000);
    apartament_door[21] = CreateDynamicObject(1505, 295.460693, -1622.989990, 45.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[22] = CreateDynamicObject(1506, 275.864990, -1619.536011, 50.494999, 0.000000, 0.000000, 260.000000);
    apartament_door[23] = CreateDynamicObject(1507, 275.864990, -1619.536011, 45.994999, 0.000000, 0.000000, 260.000000);

 

 

Link to comment
Share on other sites

gen :  for(new i = 0; i < 24; i++)
        apartament_door_status = 0;
   
    apartament_door[0] = CreateDynamicObject(1504, 294.924, -1623.68, 47, 1689.42, -1417.46, 37.3089);

sa inceapa de la 0 si in baza de date la fel.

Link to comment
Share on other sites

3 hours ago, DenisAdv said:

salut vad ca nu te descurci te ajut si eu ce pot, daca ai gm burned sau ori ce gm trebuie sa ai gen : function load_apartaments() {

 

 

iar mai jos ai gen:


for(new i = 0; i < 24; i++)
		apartament_door_status[i] = 0;
	
    apartament_door[0] = CreateDynamicObject(1504, 295.460693, -1622.989990, 63.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[1] = CreateDynamicObject(1505, 275.864990, -1619.536011, 59.494999, 0.000000, 0.000000, 260.000000);
    apartament_door[2] = CreateDynamicObject(1506, 275.864990, -1619.536011, 63.994999, 0.000000, 0.000000, 260.000000);
    apartament_door[3] = CreateDynamicObject(1507, 295.460693, -1622.989990, 59.494999, 0.000000, 0.000000, -100.000000);
    apartament_door[4] = CreateDynamicObject(1504, 275.864990, -1619.536011, 68.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[5] = CreateDynamicObject(1505, 295.460693, -1622.989990, 68.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[6] = CreateDynamicObject(1506, 295.4607, -1622.9900, 72.9950, 0.0000, 0.0000, -100.0000);
    apartament_door[7] = CreateDynamicObject(1507, 295.460693, -1622.989990, 77.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[8] = CreateDynamicObject(1504, 275.864990, -1619.536011, 72.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[9] = CreateDynamicObject(1505, 295.460693, -1622.989990, 81.994995, 0.000000, 0.000000, -100.000000);
    apartament_door[10] = CreateDynamicObject(1506, 275.864990, -1619.536011, 77.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[11] = CreateDynamicObject(1507, 275.864990, -1619.536011, 81.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[12] = CreateDynamicObject(1504, 295.460693, -1622.989990, 86.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[13] = CreateDynamicObject(1505, 275.864990, -1619.536011, 86.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[14] = CreateDynamicObject(1506, 275.864990, -1619.536011, 90.994995, 0.000000, 0.000000, 260.000000);
    apartament_door[15] = CreateDynamicObject(1507, 295.460693, -1622.989990, 90.994995, 0.000000, 0.000000, -100.000000);
    apartament_door[16] = CreateDynamicObject(1504, 295.460693, -1622.989990, 95.494995, 0.000000, 0.000000, -100.000000);
    apartament_door[17] = CreateDynamicObject(1505, 275.864990, -1619.536011, 95.494995, 0.000000, 0.000000, 260.000000);
    apartament_door[18] = CreateDynamicObject(1506, 275.864990, -1619.536011, 54.994999, 0.000000, 0.000000, 260.000000);
    apartament_door[19] = CreateDynamicObject(1507, 295.460693, -1622.989990, 54.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[20] = CreateDynamicObject(1504, 295.460693, -1622.989990, 50.494999, 0.000000, 0.000000, -100.000000);
    apartament_door[21] = CreateDynamicObject(1505, 295.460693, -1622.989990, 45.994999, 0.000000, 0.000000, -100.000000);
    apartament_door[22] = CreateDynamicObject(1506, 275.864990, -1619.536011, 50.494999, 0.000000, 0.000000, 260.000000);
    apartament_door[23] = CreateDynamicObject(1507, 275.864990, -1619.536011, 45.994999, 0.000000, 0.000000, 260.000000);

 

 

Eu n-am problema cu mappingu la usi pentru ca eu nu am sistemul vechi eu am pe F intru si pe F tot ies !
Ca la case / bizuri / factiuni !

Link to comment
Share on other sites

 for(new i = 1; i < apartamentss; i++) {
                               if(IsPlayerInRangeOfPoint(playerid, 2.0, apartamentInfo[i][apPos][0], apartamentInfo[i][apPos][1], apartamentInfo[i][apPos][2])) {
                                   SetPlayerVirtualWorld(playerid, apartamentInfo[i][apVw]);
                                   SetPlayerInterior(playerid, 1);
                                   SetPlayerPosEx(playerid, apartamentInfo[i][apEPos][0], apartamentInfo[i][apEPos][1], apartamentInfo[i][apEPos][2]);
                               }
                               if(IsPlayerInRangeOfPoint(playerid, 2.0, apartamentInfo[i][apEPos][0], apartamentInfo[i][apEPos][1], apartamentInfo[i][apEPos][2]) && GetPlayerVirtualWorld(playerid) == apartamentInfo[i][apVw]) {
                                   SetPlayerVirtualWorld(playerid, 0);
                                   SetPlayerInterior(playerid, 0);
                                   SetPlayerPosEx(playerid, apartamentInfo[i][apPos][0], apartamentInfo[i][apPos][1], apartamentInfo[i][apPos][2]);
                               }
                        }

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...