SA-MP Forums Archive
Some errors.... - 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: Some errors.... (/showthread.php?tid=82291)



Some errors.... - introzen - 17.06.2009

I got this:

pawn Код:
public OnPlayerExitVehicle(playerid, vehicleid)
{
    if(vehicleid == IntrozeNCar)
    {
      new Float:X, Float:Y, Float:Z, Float:A;
      GetVehiclePos(IntrozeNCar,X,Y,Z);
      GetVehicleZAngle(IntrozeNCar,A);
      new string[256];
      format(string,sizeof(string),"EQRP/Cars/Peter_JohnsonCar");
      dini_IntSet(string,"CarX",X); //6085
      dini_IntSet(string,"CarY",Y); //6086
      dini_IntSet(string,"CarZ",Z); //6087
      dini_IntSet(string,"CarA",A); //6088
    }
    return 1;
}
I get those 4 errors:

Код:
C:\Documents and Settings\IntrozeN\Desktop\SAMP\samp server\gamemodes\CSRP.pwn(6085) : warning 213: tag mismatch
C:\Documents and Settings\IntrozeN\Desktop\SAMP\samp server\gamemodes\CSRP.pwn(6086) : warning 213: tag mismatch
C:\Documents and Settings\IntrozeN\Desktop\SAMP\samp server\gamemodes\CSRP.pwn(6087) : warning 213: tag mismatch
C:\Documents and Settings\IntrozeN\Desktop\SAMP\samp server\gamemodes\CSRP.pwn(6088) : warning 213: tag mismatch
can someone help me please?


Re: Some errors.... - Weirdosport - 17.06.2009

Why not read the error message? You're trying to save floats as integers. You need dini_FloatSet


Re: Some errors.... - introzen - 17.06.2009

Sry....

https://sampwiki.blast.hk/wiki/Useful_Fu...s#dini_BoolSet

Didn't find dini_FloatSet there...


Re: Some errors.... - Weirdosport - 17.06.2009

I see, I'll add it.

http://forum.sa-mp.com/index.php?topic=71935.0 is a better explanation anyway...