27.05.2015, 14:31
I got a script and there is a bug when I enter a checkpoint and the textdraw will be displayed and If I then leave the checkpoint and the textdraw will not be disabled and I have printed OnPlayerLeaveDynamicCP this callback out, it won't be called, could anyone tell me what bug it is?
Here is code.
Here is code.
Код:
public OnPlayerLeaveDynamicCP(playerid, checkpointid) { TextDrawHideForPlayer(playerid, TD_AD_HeadBox); TextDrawHideForPlayer(playerid, TD_AD_BoxTwo); TextDrawHideForPlayer(playerid, TD_AD_BoxThree); TextDrawHideForPlayer(playerid, TD_AD_BoxOne); TextDrawHideForPlayer(playerid, TD_AD_Seller); PlayerTextDrawHide(playerid, TD_AD_Price); PlayerTextDrawHide(playerid, TD_AD_CityZip); PlayerTextDrawHide(playerid, TD_AD_Headline); PlayerTextDrawHide(playerid, TD_AD_Taxes); PlayerTextDrawHide(playerid, TD_AD_PriceValue); PlayerTextDrawHide(playerid, TD_AD_TaxesValue); PlayerTextDrawHide(playerid, TD_AD_SellerValue); PlayerTextDrawHide(playerid, TD_AD_HousenumberStreet); PlayerTextDrawHide(playerid, TD_Mid_Info); return 1; }