14.10.2011, 20:20
6 errors this time,once again all invalid function or declaration. Here's a portion of the code
pawn Код:
public Door1Close(playerid)
{
MoveObject(Door1, 250.57829285,62.77145767,1003.96960449, 0.5);
SendClientMessage(playerid, Message_Close_Color, Close_Message);
return 1;
}
public Door2Close(playerid)
{
MoveObject(Door2, 248.08538818,75.28663635,1003.96960449, 0.5);
SendClientMessage(playerid, Message_Close_Color, Close_Message);
return 1;
}
public Door3Close(playerid)
{
MoveObject(Door3, 243.69999695,75.31128693,1004.450012207,0.5);
SendClientMessage(playerid, Message_Close_Color, Close_Message);
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/Dooropen", true))
{
if(GetPlayerSkin(playerid) == 265 || 280 || 281 || 282 || 283 || 284 || 288)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 249.4305,63.5593,1003.6406))
{
MoveObject(Door1, 250.578125, 61.020000457764, 1003.9696044922, 0.5);
SetTimer("Door1Close", 5000, false);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 247.7019,76.2960,1003.6406))
{
MoveObject(Door2, 248.0849609375, 73.5, 1003.9696044922, 0.5);
SetTimer("Door2Close", 5000, false);
}
else if(IsPlayerInRangeOfPoint(playerid, 2.0, 244.5161,75.7830,1003.9963))
{
MoveObject(Door3, 243.69921875, 73.400001525879, 1004.450012207, 0.5);
SetTimer("Door3Close", 5000, false);
}
}
else return SendClientMessage(playerid, Message_Color, Error_Message);
}
return 1;
}