SA-MP Forums Archive
error 035 - 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: error 035 (/showthread.php?tid=536808)



error 035 - AroseKhanNiazi - 12.09.2014

pawn Код:
GetPlayerPos(playerid,PlayerMoneyBagInfo[bagid][pBagX]+1,PlayerMoneyBagInfo[bagid][pBagY]+1,PlayerMoneyBagInfo[bagid][pBagZ]+1);
this is my code (error line)
Код:
error 035: argument type mismatch (argument 2)
and these pBagX,pBagY,pBagZ are Float: values.


Re: error 035 - Stinged - 12.09.2014

You can't add to a float in GetPlayerPos.


Re: error 035 - Ox1gEN - 12.09.2014

That's because you are getting the player's position and storing it in variables, for that you're just going to have to use SetPlayerPos and those +1's.

It'll work the same, just when you set the player's pos don't forget to add 1's or whatever you like.


Re: error 035 - AroseKhanNiazi - 12.09.2014

ok thanks +rep i knew the other way but didn't knew this will not work..
btw stinged GetPlayerPos is the float value.x.y.z


Re: error 035 - Stinged - 12.09.2014

Quote:
Originally Posted by AroseKhanNaizi
Посмотреть сообщение
btw stinged GetPlayerPos is the float value.x.y.z
I didn't say you can't do that, but I said you can't add to X, Y and Z inside of GetPlayerPos.


Re: error 035 - AroseKhanNiazi - 12.09.2014

oh lol i didn't get what u ment..