22.03.2010, 16:57
ok, i got this now:
But the second: } else {
gives me this error:
invalid expression, assumed zero
Код:
if(strcmp("/lift", cmdtext, true) == 0) { if(lift == 0) // Checks if lift is 0, If it's 0 moves to the rest If then to the code.. { if(IsPlayerInRangeOfPoint(playerid, 50, -2464.9296875,1522.9167480469,27.570457458496)) { MoveObject(boatlift,-2464.9296875,1522.9167480469,27.570457458496, 2.0); lift = 1; // Changing lift to 1 return 1; } else { SendClientMessage(playerid, COLOR_BLUE, "You Are Not Close Enough To The Lift(San Fierro Freight Boat)"); } else { if(lift == 1)MoveObject(boatlift, -2464.9296875,1522.9167480459,6.1990437507629,2); lift = 0; return 1; }
gives me this error:
invalid expression, assumed zero