[HELP] Update3DTextLabelText isn't updating [UNSOLVED] -
ddnbb - 27.02.2012
Why isnt the label being updated? No errors & no warnings...
Under loading faction data:
pawn Код:
if(DynamicFactions[idx][fLocked] == 1)
{
DynamicFactions[idx][fLocked1] = Create3DTextLabel("Locked", COLOR_RED, DynamicFactions[idx][fEnterX], DynamicFactions[idx][fEnterY], DynamicFactions[idx][fEnterZ], PDISTANCE, DynamicFactions[idx][fVirtual], 1);
DynamicFactions[idx][fLocked2] = Create3DTextLabel("Locked", COLOR_RED, DynamicFactions[idx][fExitX], DynamicFactions[idx][fExitY], DynamicFactions[idx][fExitZ], PDISTANCE, 0, 1);
}
else
{
DynamicFactions[idx][fUnlocked1] = Create3DTextLabel("Unlocked", COLOR_GREEN, DynamicFactions[idx][fEnterX], DynamicFactions[idx][fEnterY], DynamicFactions[idx][fEnterZ], PDISTANCE, DynamicFactions[idx][fVirtual], 1);
DynamicFactions[idx][fUnlocked2] = Create3DTextLabel("Unlocked", COLOR_GREEN, DynamicFactions[idx][fExitX], DynamicFactions[idx][fExitY], DynamicFactions[idx][fExitZ], PDISTANCE, 0, 1);
}
And the command:
pawn Код:
if(strcmp(cmd, "/unlock", true) == 0)
{
new faction = PlayerInfo[playerid][pFaction];
if(PlayerInfo[playerid][pFaction] != 255)
{
if(PlayerToPoint(3.0,playerid,DynamicFactions[faction][fExitX],DynamicFactions[faction][fExitY],DynamicFactions[faction][fExitZ]))
{
if(DynamicFactions[faction][fLocked] == 0){ SendErrorMessage(playerid, "The Head Quarter is allready unlocked!"); return 1; }
format(string,sizeof(string), " * %s takes out %s keys, and unlocks the Head Quarters door.", PlayerName(playerid), HisHer(playerid));
ProxDetector(PDISTANCE, playerid, string, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE, COLOR_PURPLE);
DynamicFactions[faction][fLocked] = 0;
Update3DTextLabelText(DynamicFactions[faction][fUnlocked1], COLOR_GREEN, "Unlocked");
Update3DTextLabelText(DynamicFactions[faction][fUnlocked2], COLOR_GREEN, "Unlocked");
return 1;
}
}
return 1;
}
Re: -= Update3DTextLabelText isn't updating =- -
ddnbb - 27.02.2012
There isn't anything wrong, aint there? I'm getting a headache from this, lol. :S
Re: -= Update3DTextLabelText isn't updating =- -
ddnbb - 27.02.2012
i even tried with a loop, but the label wont get updated for some reason:
pawn Код:
for(new i = 0; i < sizeof(DynamicFactions); i++)
{
Update3DTextLabelText(DynamicFactions[i][fLocked1], COLOR_RED, "Locked");
Update3DTextLabelText(DynamicFactions[i][fLocked2], COLOR_RED, "Locked");
printf("faction"); // to make sure it loops correctly, and it does
}
Someone heeelp mee, please..
Re: -= Update3DTextLabelText isn't updating =- -
ddnbb - 27.02.2012
Last bump, anyone? Is this problem impossible to everyone lol?
Re: -= Update3DTextLabelText isn't updating =- -
Walsh - 27.02.2012
I've looked through it countless times and still can't figure it out. I bet it's a simple mistake. So simple that it was overlooked. Goodluck with that lol.