Tag Mismatch [REP]
#1

I am getting a tag mismatch for some reason. I'm not sure why...

Here is the code, and yes, all the positions are Floats...

pawn Код:
gStats[i][LabelID] = Create3DTextLabel(string, COLOR_YELLOW, gStats[i][Ext][0], gStats[i][Ext][1], gStats[i][Ext][2], 100, 0, 0);
Reply
#2

the 100 should be a float also (the draw distance)
100.0 should do it.

no rep needed here this was simple

regards,
Reply
#3

I'm still getting the error.

This is how its done for the Ext's...

pawn Код:
mysql_get_field("extx", Query);
        gStats[i][Ext][0] = strval(Query);
Its done like that for every single one.
Reply
#4

according to the wiki
strval can be used to convert a string to an integer.

so its not converting to FLOAT:

try removing the tag as i dont see a function for string to float.

pawn Код:
_:gStats[i][Ext][0]
or dig into sscanf and see how ****** converted from string to float.

EDIT: Look BELOW!!

good one roach, i see i have lots to learn still...


and also i didnt see this functions but thxs
Quote:
Originally Posted by [Diablo]
Посмотреть сообщение
Reply
#5

Or:
pawn Код:
gStats[i][Ext][0] = floatstr(Query);
Reply
#6

Quote:
Originally Posted by Jonny5
Посмотреть сообщение
according to the wiki
strval can be used to convert a string to an integer.

so its not converting to FLOAT:

try removing the tag as i dont see a function for string to float.

pawn Код:
_:gStats[i][Ext][0]
or dig into sscanf and see how ****** converted from string to float.
https://sampwiki.blast.hk/wiki/Floatstr
Reply
#7

I fixed it. In the enum, I forgot to do Text3D: LabelID,

Sorry! And thanks for anybody who helped
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)