3d text label
#1

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);
Reply
#2

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);
Reply
#3

whats testlos? until now i don't know what that means
Reply
#4

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

Reply
#5

PHP код:
if(FUELdata[idx][fuelPosX] != 0.000000
                  { 
                      new 
string[128]; 
                      
format(stringsizeof(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(stringCOLOR_YELLOWFUELdata[idx][fuelPosX], FUELdata[idx][fuelPosY], FUELdata[idx][fuelPosZ], 10.000); 
                } 
i still get a tag mismtach
Reply
#6

Is fuelId defined as

Text3D:fuelId

?
Reply
#7

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, Floattreamdistance);

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.
Reply
#8

yeah thx yashas :3 REP+
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)