UpdatePoint(id){
new m[512];
if(PointInfo[id][point_text]){
DestroyDynamic3DTextLabel(PointInfo[id][point_text]);
}
if(PointInfo[id][point_pickup]){
DestroyDynamicPickup(PointInfo[id][point_pickup]);
}
if(PointInfo[id][capturedby]){
format(m, sizeof(m), "%s\nCaptured By %s", PointInfo[id][point_name],GetFamilyName(PointInfo[id][capturedbyf]));
printf("%s", m);
}else{
format(m, sizeof(m), "%s\nAvailable", PointInfo[id][point_name]);
}
PointInfo[id][point_pickup] = CreateDynamicPickup(1254, 23, PointInfo[id][point_pos][0],PointInfo[id][point_pos][1],PointInfo[id][point_pos][2], -1, -1, -1, 30.0,-1,0);
PointInfo[id][point_text] = Create3DTextLabel(m, COLOR_YELLOW, PointInfo[id][point_pos][0],PointInfo[id][point_pos][1],PointInfo[id][point_pos][2], 30.0, 0, 0);
}
if(PointInfo[id][point_text]){
DestroyDynamic3DTextLabel(PointInfo[id][point_text]);
}
if(PointInfo[id][point_text] != -1)
{
Delete3DTextLabel(PointInfo[id][point_text]);
}
it should be Delete3DTextLabel since you aren't creating a CreateDynamic3DTextLabal.
pawn Код:
|