timer problem
#1

humm, im getting this problem
with this timer
Код:
public parkourlifttimer()
{
    if(GetObjectPos(parkourlift,-1835.0871582031, 551.08648681641, 233.88743591309) == 1)//error line
    {
        SendClientMessage(playerid, 0x12FE24FF, "In 5 sec's parkour lifter will go down");
        SetTimer("movingparkourlift",5000,false);
     }
    return 1;
}
Quote:

C:\Users\mike\Desktop\server\filterscripts\gates.p wn(134) : error 035: argument type mismatch (argument 2)
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.

error line:
Quote:

if(GetObjectPos(parkourlift,-1835.0871582031, 551.08648681641, 233.88743591309) == 1)//error line

Reply
#2

Read this link, it should help you.
Reply
#3

i did whats your point?
Reply
#4

Quote:
Originally Posted by dark_clown
Посмотреть сообщение
i did whats your point?
It has to be used like this:

pawn Код:
new Float:x, Float:y, Float:z;
GetObjectPos(parkourlift,x, y, z)
if(x==-1.000&&y==1.00&&z==3.5)return 1;
Reply
#5

Have fun
pawn Код:
public parkourlifttimer()
{
    new Float:x,Float:y,Foat:z;
    GetObjectPos(parkourlift,x,y,z);
    if(x == -1835.087 && y == 551.086 && z == 233.887)
    {
        SendClientMessage(playerid, 0x12FE24FF, "In 5 sec's parkour lifter will go down");
        SetTimer("movingparkourlift",5000,0);
    }
    return 1;
}
Reply
#6

Quote:

C:\Users\mike\Desktop\server\filterscripts\gates.p wn(135) : warning 213: tag mismatch
C:\Users\mike\Desktop\server\filterscripts\gates.p wn(136) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
2 Warnings.

the 2 errors lines are
Quote:

GetObjectPos(parkourlift,x,y,z);
if(x == -1835.087 && y == 551.086 && z == 233.887)

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)