SA-MP Forums Archive
floatstr > tag mismatch? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: floatstr > tag mismatch? (/showthread.php?tid=72271)



floatstr > tag mismatch? - Think - 07.04.2009

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



Re: floatstr > tag mismatch? - Weirdosport - 07.04.2009

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



Re: floatstr > tag mismatch? - Think - 07.04.2009

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.


Re: floatstr > tag mismatch? - Think - 07.04.2009

srry, close, had float instead of Float


Re: floatstr > tag mismatch? - Weirdosport - 07.04.2009

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