02.10.2010, 20:31
maybe, not sure but can u tell me what !gate does?
becoz maybe its like this
if u get alot of errors just add a bracket after setobjectrot at the else if
or remove one
becoz maybe its like this
Код:
if(!strcmp(cmdtext, "/barrier", true)) { if(IsPlayerInRangeOfPoint(playerid, 15, 1544.700317,-1630.735717,12.924660)) { if(gate == 1) { SetObjectRot( pdgate2, 0,0.0,90.0); gate = 0; } else if(gate == 0) SetObjectRot( pdgate2, 0,90,90.0); gate = 1; } } return 1; }
or remove one
