Jump to content
  • 0

bug poarta


AlexXD

Question

am problema cu o poarta se deschide totul perfect dar nu se mai inchide dupa cele 5 secunde

[pawn]forward tccgateclose();[/pawn]

[pawn]new gatetcc;[/pawn]

[pawn]public tccgateclose()

{

MoveDynamicObject(gatetcc, 870.4600, -1159.3400, 19.9571, 3.0);

return 1;

}[/pawn]

[pawn]if (newkeys==KEY_FIRE)

{

if(PlayerInfo[playerid][pMembruu] == 17 || PlayerInfo[playerid][pLiderr] == 17)

{

if(IsPlayerConnected(playerid))

{

if(PlayerToPoint(5, playerid,870.4600, -1159.3400, 24.9500))

{

    MoveDynamicObject(gatetcc, 870.4600, -1159.3400, 19.9571, 3.0);

    SendClientMessage(playerid, 0x00FFFFFF, "*Ai deschis poarta pentru 5 secunde.");

    SetTimer("tccgateclose",5000, false);

    return 1;

}

}

}

}[/pawn]

[pawn]gatetcc = CreateDynamicObject(980, 870.46, -1159.34, 24.95,  0.00, 0.00, 0.00);[/pawn]

Uite aici si coodonatele porti :

Deschisa [pawn]870.4600, -1159.3400, 19.3016[/pawn]

Inchisa [pawn]870.4600, -1159.3400, 24.9604[/pawn]

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

Amice, te sfatuiesc sa mai vizitezi SA:MP Wiki.Din cate vad, folosesti Incognito Streamer deci prin urmare, te sfatuiesc sa folosesti sintaxa optionala in loc de cea normala aceasta fiind:

[pawn]MoveDynamicObject( objectid, Float:X, Float:Y, Float:Z, Float:Speed, Float:RotX = -1000.0, Float:RotY = -1000.0, Float:RotZ = -1000.0 )[/pawn]

Link to comment
Share on other sites

modifica asa

[pawn]public tccgateclose()

{

MoveDynamicObject(gatetcc, 870.4600, -1159.3400, 24.9500, 3.0);

return 1;

}[/pawn]

la acel public tccgateclose trebuie sa muti poarta in pozitia initiala

Ce vrea sa spuna colegul, este ca tu ai in aceasta functie de inchidere trebuia sa pui coordonatele originale, ale obiectului

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

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.