19.05.2015, 12:44
Hello, it was all okay since now, something happened (I didn't touch the code in this part of script), but now I have a problem.
When I create an object and edit it, it appears for 0.1s and then dissapears and EDIT_RESPONSE_CANCEL starts working.
This part of code executes after creating an object. How to fix this?
When I create an object and edit it, it appears for 0.1s and then dissapears and EDIT_RESPONSE_CANCEL starts working.
Code:
if(response == EDIT_RESPONSE_CANCEL) { SendMessage(playerid,NEUTRAL,"Statyba atљaukta.","Building cancelled"); DestroyDynamicObject(BuildObjects[sklypid][i][buildobj]); Stato[playerid]=false; return 1; }