04.02.2019, 01:13
Hello, I am having problem, whenever i try to destroy Dynamic3Dtext it doesn't destroy..
COde
Pickup destroying well but 3dtext doesn't
tried with debugger(printf)
if(PointInfo[id][point_text] -> it says point_text don't exist
COde
PHP код:
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);
}
PHP код:
if(PointInfo[id][point_text]){
DestroyDynamic3DTextLabel(PointInfo[id][point_text]);
}
if(PointInfo[id][point_text] -> it says point_text don't exist