error 035
#1

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

You can't add to a float in GetPlayerPos.
Reply
#3

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.
Reply
#4

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
Reply
#5

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.
Reply
#6

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


Forum Jump:


Users browsing this thread: 1 Guest(s)