SetPlayerPos bug
#1

I was trying my npc system, when I use setplayerpos with timer, (and if timer's interval is lower than 1000 ms) setplayerpos will work per second and it will not use my timer's interval.

It was working in 0.3a, i don't know what will be in 0.3b.

Sorry for my english.
Reply
#2

Update to 0.3c first...
Reply
#3

I'm already using 0.3c!

It was working in 0.3a. It doesn't work in 0.3c.
Reply
#4

Would you mind showing us your code?
Reply
#5

pawn Code:
SetTimer("Hello",100,true);

forward Hello();
public Hello()
{
        new Float:pos[3];
        GetPlayerPos(1,pos[0],pos[1],pos[2]);
        SetPlayerPos(1,pos[0],pos[1]+1,pos[2]);
        return 1;
}
Reply
#6

Please, someone must confirm this! It is really important for me.
Reply
#7

Well, replace 1 with 1.0. Its a float.
Reply
#8

Quote:
Originally Posted by timothyinthehouse
View Post
Well, replace 1 with 1.0. Its a float.
Isn't necessary to, they work both ways.

- Confirmed

Happened with the same type of code you had while making a little sliding action.
Reply
#9

@lorenc.

Well I had this problem once and I had to make it a decimal.
Reply
#10

I think it is nothing to do with the integer, as it should be automatically converted into a float value when they are passed into the function.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)