18.06.2009, 12:48
Remove the modelid from MoveObject, you don't have that.
That will get rid of 4 warnings.
Replace if (strcmp("/1337898", cmdtext, true, 10) == 0);
With if (strcmp("/1337898", cmdtext, true, 10) == 0)
No ; is meant to be in it. That will remove the error.
Loose indentations are not really a problem.
That will get rid of 4 warnings.
Replace if (strcmp("/1337898", cmdtext, true, 10) == 0);
With if (strcmp("/1337898", cmdtext, true, 10) == 0)
No ; is meant to be in it. That will remove the error.
Loose indentations are not really a problem.
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/1337898", cmdtext, true, 10) == 0)
{
if(gate1status)
{
MoveObject(gate1,-1994.02, 2181, 7.00, 1);
gate1status = 0;
}
else
{
MoveObject(gate1,-1994.02, 2187, 7.00, 1);
gate1status = 1;
return 1;
}
}
if (strcmp("/69875", cmdtext, true, 10) == 0)
{
if(gate2status)
{
MoveObject(gate2, -1994.02, 2173, 7.00, 1);
gate2status = 0;
}
else
{
MoveObject(gate2, -1994.02, 2167, 7.00, 1);
gate2status = 1;
}
}
return 1;
}
}