floatstr > tag mismatch?
#1

Hey,

when i use floatstr ill get 'tag mismatch' if i replace it with strval i get no errors:


pawn Код:
VehicleInfo[idx][vSpawnz]           = strval(fields[4]); // no error but wont work
        VehicleInfo[idx][vSpawnrot]             = floatstr(fields[5]);// errors but if no errors wil work
Reply
#2

The place you intend to store the evaluated str needs to be defined as a Float if you want to store Floats in it...

eg:

pawn Код:
new Float:bob
Reply
#3

Quote:
Originally Posted by Weirdosport
The place you intend to store the evaluated str needs to be defined as a Float if you want to store Floats in it...

eg:

pawn Код:
new Float:bob
duh?

pawn Код:
enum carshit
{
    float:vSpawnz,
    float:vSpawnrot,
};
new VehicleInfo[rCars][carshit];
so wuts wrong now.
Reply
#4

srry, close, had float instead of Float
Reply
#5

I was just about to say, ask a stupid question get a stupid answer, but you fixed it yourself >.>
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)