10.06.2010, 15:33
Hello. I've lately started to get this problem when I close my gate with a command it just disappears. It turns invisible.
This is how my code looks like..
On top of script:
In OnGameModeInit:
In OnPlayerCommandText:
Note that this problem never occured until some days ago. If you know what the problem might be, don't hesitate to reply! Thanks.
This is how my code looks like..
On top of script:
pawn Код:
new testgate;
pawn Код:
testgate = CreateObject(971, 2488.9069824219, -1667.0736083984, 15.963682174683, 0, 0, 0);
pawn Код:
if(strcmp(cmdtext,"/testopen", true) == 0)
{
if(PlayerToPoint(30.0, playerid,2488.9069824219, -1667.0736083984, 15.963682174683))
{
MoveObject(testgate, 2497.9738769531, -1667.1553955078, 15.963682174683, 1.500000);
return 1;
}
}
if(strcmp(cmdtext,"/testclose", true) == 0)
{
if(PlayerToPoint(30.0, playerid,2488.9069824219, -1667.0736083984, 15.963682174683))
{
MoveObject(testgate, 2488.9069824219, -1667.0736083984, 15.963682174683, 1.500000);
return 1;
}
}