21.06.2011, 23:44
Ive been working on this for hours! and i just can't find the problem.
The puclic HouseUpdate does update every 1 sec because it prints the "printf" every seconds.
But when i change the LockStatus it doesn't update the 3D text? why isn't it updating the text?
Ive tryed deleting the text and even use the Update3DText but i can't get it to work can anybody help me?
The puclic HouseUpdate does update every 1 sec because it prints the "printf" every seconds.
But when i change the LockStatus it doesn't update the 3D text? why isn't it updating the text?
Ive tryed deleting the text and even use the Update3DText but i can't get it to work can anybody help me?
pawn Код:
new HouseUpdateTimer // on top
HouseUpdateTimer = SetTimer( "HouseUpdateM", 1000, true ); // OnGameModeInit
forward HouseUpdateM();
public HouseUpdateM()
{
new string[128];
for(new h = 0; h < sizeof(Houses); h++)
{
if( Houses[h][LockStatus] == 1 )
{
format ( string, sizeof( string ), "test 1: %s", Houses[h][hOwner]);
Create3DTextLabel(string,HOUSETUR, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ], 10,0,1);
printf("Text1")
}
else
{
format ( string, sizeof( string ), "test 2: %s", Houses[h][hOwner]);
Create3DTextLabel(string,HOUSETUR, Houses[h][hExteriorX], Houses[h][hExteriorY], Houses[h][hExteriorZ], 10,0,1);
printf("Text2")
}
}
return 1;
}