problem with OnPlayerUpdate
#1

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(LSPDGGOPEN == false){
    MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2);
    }else{
    MoveObject(LSPDGG,1589.6, -1638.3, 10,2);}}
   
    return 1;
}
Error:
pawn Код:
error 010: invalid function or declaration
Line of error:
pawn Код:
return 1;
Reply
#2

Replace that code for this..

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(LSPDGGOPEN == false)
    {
    MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2);
    }
    else
    {
    MoveObject(LSPDGG,1589.6, -1638.3, 10,2);
    }
    return 1;
}
Reply
#3

Quote:
Originally Posted by juandiegox
Посмотреть сообщение
Replace that code for this..

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(LSPDGGOPEN == false)
    {
    MoveObject(LSPDGG,1589.6, -1638.3, 14.26,2);
    }
    else
    {
    MoveObject(LSPDGG,1589.6, -1638.3, 10,2);
    }
    return 1;
}
Thanks alot
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)