01.04.2016, 17:13
Got a problem here, not sure why.
When I create a entrance, I am able to do change the entrance's name after.
Once I GMX or restart, I am unable and returns my not near entrance error?
The text and icons spawn, I am also unable to /enter.
Dialog:
InRangeOfEntrance
When I create a entrance, I am able to do change the entrance's name after.
Once I GMX or restart, I am unable and returns my not near entrance error?
The text and icons spawn, I am also unable to /enter.
Dialog:
PHP код:
case 1: //Change Entrance Name
{
if(InRangeOfEntrance(playerid))
{
Dialog_Show(playerid, ChangeEntranceName, DIALOG_STYLE_INPUT, "Entrance Editor", "Please enter the desired name:", "Continue","Cancel");
}
else
{
SendErrorMessage(playerid, "You need to be standing in the entrance icon you wish to change the name of!");
}
}
PHP код:
public InRangeOfEntrance(playerid)
{
for(new id = 0; id < MAX_ENTER; id++)
{
if(IsPlayerInRangeOfPoint(playerid, 3.0, Entrance[id][PosX], Entrance[id][PosY], Entrance[id][PosZ]))
{
return id;
}
}
return 0;
}