3d text label -
Ryan_Obeles - 06.05.2013
help i don't get it i get a tag mismatch if i put it on my fuel loading function but it works on ongamemodeinit well
FUELdata[idx][fuelId] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, FUELdata[idx][fuelPosX], FUELdata[idx][fuelPosY], FUELdata[idx][fuelPosZ], 10.0);
Re: 3d text label -
Lionel - 06.05.2013
To be honest, everything seems to be scripted correct. Check this
https://sampwiki.blast.hk/wiki/Create3DTextLabel
Код:
(text[], color, Float:X, Float:Y, Float:Z, Float:DrawDistance, virtualworld, testLOS)
Try this, if it does not work, you need to send us your fuel loading system.
pawn Код:
FUELdata[idx][fuelId] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, FUELdata[idx][fuelPosX], FUELdata[idx][fuelPosY], FUELdata[idx][fuelPosZ], 10.0, 0, 0);
Re: 3d text label -
Ryan_Obeles - 06.05.2013
whats testlos? until now i don't know what that means
Re: 3d text label -
Neil. - 06.05.2013
Quote:
Originally Posted by Ryan_Obeles
whats testlos? until now i don't know what that means
|
Sa-mp wiki clearly states:
Quote:
0/1 Test the line-of-sight so this text can't be seen through objects
|
Re: 3d text label -
Ryan_Obeles - 06.05.2013
PHP код:
if(FUELdata[idx][fuelPosX] != 0.000000)
{
new string[128];
format(string, sizeof(string), "{5BD926}Gas Station\n {FFFF00}Type '{F20DDB}/refuel{FFFF00}' to refill your vehicle's tank. ID:%d", FUELdata[idx][fuelId]);
FUELdata[idx][fuelId] = CreateDynamic3DTextLabel(string, COLOR_YELLOW, FUELdata[idx][fuelPosX], FUELdata[idx][fuelPosY], FUELdata[idx][fuelPosZ], 10.0, 0, 0);
}
i still get a tag mismtach
Re: 3d text label -
InfiniTy. - 06.05.2013
Is fuelId defined as
Text3D:fuelId
?
Re: 3d text label -
Yashas - 06.05.2013
You are using Streamer?
The format goes like this
CreateDynamic3DTextLabel(const text[], color, Float

, Float:y, Float:z, Float:drawdistance, attachedplayer , attachedvehicle, testlos, worldid , interiorid, playerid, Float

treamdistance);
All are not compulsory to give but these
pawn Код:
const text[], color, Float:x, Float:y, Float:z, Float:drawdistance
are compulsory.
And your format seems perfect.
A tag mismatch tells us that the data-types do not match.For example, you give a character as the data to a float.This is a tag mismatch.
In your case, try these two:
1)Make sure FUELdata[idx][fuelId] is a Text3D Type.
Text3D:fuelId;
2)Are your x,y,z,etc parameters Float??If not
Float:z,Float:y,Float:z
One of these has to fix.
Re: 3d text label -
Ryan_Obeles - 06.05.2013
yeah thx yashas :3 REP+