[BUG?] All 3Dtexts attached to player ID 0 -
Kwarde - 08.12.2011
Hello there,
I have a strange problem, and I don't know why. Simply all the 3D texts are being attached to player ID 0. I'd check my code and there's not even one code that attaches a 3Dtext to a player.
I don't know since when this occurs, the only 2 things I can tell you is this:
* It was before 0.3d already like this (so in 0.3c :P)
* I am using Incognito's streamer for the 3D texts
If I'd know since when it occured (so I don't know what piece of code can occur this). Had anyone ever have this? If yes: Were you able to fix it? If so, how? I don't like this actually :P. If you haven't ever had this, do you still know why this could happen, and how to fix it?
Thanks in advance,
- Kevin
Re: [BUG?] All 3Dtexts attached to player ID 0 - T0pAz - 08.12.2011
Quote:
I'd check my code and there's not even one code that attaches a 3Dtext to a player.
|
Are you using any filterscript?
Respuesta: [BUG?] All 3Dtexts attached to player ID 0 -
OPremium - 08.12.2011
Post some of your CreateDynamic3DTextLabel lines, so we can see the problem
Re: [BUG?] All 3Dtexts attached to player ID 0 -
Kwarde - 08.12.2011
Quote:
Originally Posted by T0pAz
Are you using any filterscript?
|
No
Quote:
Originally Posted by OPremium
Post some of your CreateDynamic3DTextLabel lines, so we can see the problem
|
pawn Код:
//Variables
new Text3D:HouseText[MAX_HOUSES];
new Text3D:LeapLabel;
new Text3D:BizText[MAX_BUSINESSES];
//The creation codes
LeapLabel = CreateDynamic3DTextLabel("Leap of faith point", COLOR_LIGHTBLUE, 376.278320, -2559.234130, 134.964736, 25, 0, 1);
HouseText[houseid] = CreateDynamic3DTextLabel(houseTextStr, COLOR_LIGHTBLUE, HouseInfo[houseid][hEnterX], HouseInfo[houseid][hEnterY], HouseInfo[houseid][hEnterZ], 25, HouseInfo[houseid][hEnterVir], 1);
BizText[bizid] = CreateDynamic3DTextLabel(bizTextStr, COLOR_LIGHTBLUE, BizInfo[bizid][bPosX], BizInfo[bizid][bPosY], BizInfo[bizid][bPosZ], 25, BizInfo[bizid][bPosVir], 1);
//The deletion codes
Delete3DTextLabel(LeapLabel);
Delete3DTextLabel(HouseText[houseid]);
Delete3DTextLabel(BizText[bizid]);
This are all the codes and variables that has to do anything with it. There aren't any other functions in the script even containing the text "3D". I've looked at every line (currently 3648 lines) and this is really everything.
Also, about the "so we can see the problem": If it would be visible I'd have fixed it already... And it always simply worked, and now it suddenly simply doesn't.
- Kevin
Respuesta: Re: [BUG?] All 3Dtexts attached to player ID 0 -
OPremium - 08.12.2011
In one of your lines you are setting attachedplayer to 0 and attachedvehicle to 1! Maybe it was correct in a previous version of the plugin?
pawn Код:
native Text3D:CreateDynamic3DTextLabel(const text[], color, Float:x, Float:y, Float:z, Float:drawdistance, attachedplayer = INVALID_PLAYER_ID, attachedvehicle = INVALID_VEHICLE_ID, testlos = 1, worldid = -1, interiorid = -1, playerid = -1, Float:streamdistance = 100.0);
Try with this code:
pawn Код:
//The creation codes
LeapLabel = CreateDynamic3DTextLabel("Leap of faith point", COLOR_LIGHTBLUE, 376.278320, -2559.234130, 134.964736, 25, INVALID_PLAYER_ID, INVALID_VEHICLE_ID);
HouseText[houseid] = CreateDynamic3DTextLabel(houseTextStr, COLOR_LIGHTBLUE, HouseInfo[houseid][hEnterX], HouseInfo[houseid][hEnterY], HouseInfo[houseid][hEnterZ], 25, .worldid = HouseInfo[houseid][hEnterVir]);
BizText[bizid] = CreateDynamic3DTextLabel(bizTextStr, COLOR_LIGHTBLUE, BizInfo[bizid][bPosX], BizInfo[bizid][bPosY], BizInfo[bizid][bPosZ], 25, .worldid = BizInfo[bizid][bPosVir]);
Also make sure that you have the latest include file
Re: [BUG?] All 3Dtexts attached to player ID 0 -
Kwarde - 08.12.2011
Off course, the 'attachedplayer'. I see now what I did do wrong: I first had the normal 'Create3DTextLabel' and just changed the function to 'CreateDynamic3DTextLabel'. The 'attachedplayer' is in the normal Create3DTextLabel 'virtualworld'. Thank you.
- Kevin
p.s.
I do have the latest include - Once 0.3d got released I re-downloaded everything
Re: [BUG?] All 3Dtexts attached to player ID 0 -
vldmrtal - 10.01.2012
I HAV A QUESTION.
I HAVE THE SAME PROBLEM With my script
everytime i do anything with player id like sending 2 someone then it quickly goes off to id 0..
like if i did /w 9 then it iwll be sended to 0..
how should i fix it?
Re: [BUG?] All 3Dtexts attached to player ID 0 -
JamesC - 10.01.2012
Quote:
Originally Posted by vldmrtal
I HAV A QUESTION.
I HAVE THE SAME PROBLEM With my script
everytime i do anything with player id like sending 2 someone then it quickly goes off to id 0..
like if i did /w 9 then it iwll be sended to 0..
how should i fix it?
|
Update sscanf / your server to the latest release.