30.06.2013, 11:03
as the title said the id doesnt increase it stay always in 0
here is my code
here is my code
pawn Код:
CMD:cdoor(playerid,params[])
{
new string[200];
for(new idx=0; idx<MAX_DOOR; idx++)
{
//if(!DoorInfo[idx][dId])
//{
GetPlayerPos(playerid, DoorInfo[idx][dXe], DoorInfo[idx][dYe], DoorInfo[idx][dZe]);
DoorInfo[idx][dIe] = GetPlayerInterior(playerid);
DoorInfo[idx][dVe] = GetPlayerVirtualWorld(playerid);
GetPlayerFacingAngle(playerid, DoorInfo[idx][dAi]);
// Creating the door
CreateDynamicPickup(19198, 1, DoorInfo[idx][dXe], DoorInfo[idx][dYe], DoorInfo[idx][dZe]+0.3, DoorInfo[idx][dVe], DoorInfo[idx][dIe]);
format(string, sizeof(string), "ID: %d",idx);
CreateDynamic3DTextLabel(string,-1, DoorInfo[idx][dXe]-0.1, DoorInfo[idx][dYe], DoorInfo[idx][dZe]+0.5, 15);
idx = MAX_DOOR;
//}
}
return 1;
}