Some errors....
#1

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?
Reply
#2

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

Sry....

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

Didn't find dini_FloatSet there...
Reply
#4

I see, I'll add it.

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


Forum Jump:


Users browsing this thread: