SA-MP Forums Archive
Warning Problem - 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)
+--- Thread: Warning Problem (/showthread.php?tid=319169)



Warning Problem - V_LOPE - 18.02.2012

Код:
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
warning 213: tag mismatch
Code:

pawn Код:
//at Top
new IsOwner[MAX_VEHICLES];
pawn Код:
dUserSetINT(PlayerName2(playerid)).("X",CarInfo[IsOwner[vehicleid]][CarX]);
  dUserSetINT(PlayerName2(playerid)).("Y",CarInfo[IsOwner[vehicleid]][CarY]);
  dUserSetINT(PlayerName2(playerid)).("Z",CarInfo[IsOwner[vehicleid]][CarZ]);
  dUserSetINT(PlayerName2(playerid)).("Rot",CarInfo[IsOwner[vehicleid]][CarRot]);
what's Wrong?


Re: Warning Problem - Vince - 18.02.2012

You're trying to save float values with a function that's meant to save integer values.


Re: Warning Problem - V_LOPE - 18.02.2012

So How I Can Fix it?


Re: Warning Problem - dice7 - 18.02.2012

Use dUserSetFLOAT
Код:
dUserSetFLOAT(PlayerName2(playerid)).("X",CarInfo[IsOwner[vehicleid]][CarX]);

dUserFLOAT(PlayerName2(playerid)).("X");



Re: Warning Problem - V_LOPE - 18.02.2012

Thanks it Worked.
+Rep.