Anybody know why this wont work? (gate opening)
#2

Use next time, please.

Try that:

pawn Код:
public OnPlayerCommandText(playerid,cmdtext[])
{
    if (strcmp("/open 1", cmdtext, true, 7) == 0)
{
MoveObject(1357.68286133,773.33685303,4,4);
return 1;
}

if (strcmp("/close 1", cmdtext, true,  == 0)
{
MoveObject(1357.68286133,773.33685303,12.44526672, 4)
return 1;
}

if(strcmp("/open 2", cmdtext, true, 7) == 0)
{
MoveObject(1357.40942383,713.22784424,4,4);
return 1;
}

if(strcmp("/close 2", cmdtext, true,  == 0)
{
MoveObject(1357.40942383,713.22784424,12.44526672, 4);
return 1;
}
return 0;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)