renjiabarai Posted December 8, 2016 Share Posted December 8, 2016 Why doesn't work? help me please. Thank you ! {$CLEO .cs} //-------------MAIN--------------- 0662: printstring "Taxi" thread 'Taxi' wait 2500 0B34: samp register_client_command "spawncivil" to_label @Taxi_113 :cmd_22 wait 0 jump @cmd_22 :taxi_113 SAMP.IsCommandTyped([email protected]) wait 0 if [email protected] = Marker.CreateIconAndSphere(1798.8212, -1861.9750, 13.5769, 45.0000) 0570: [email protected] = create_asset_radar_marker_with_icon 23 at 1798.8212 -1861.9750 13.5769 45.0000 wait 0 if 0256: player $PLAYER_CHAR defined 0102: actor $PLAYER_ACTOR in_sphere 1798.8212 -1861.9750 13.5769 45.0000 radius 1.0 1.0 1.0 sphere 1 stopped Marker.Disable([email protected]) Marker.Disable([email protected]) SAMP.CmdRet wait 5000 jump @taxi_113 Link to comment Share on other sites More sharing options...
spaceeinstein Posted December 8, 2016 Share Posted December 8, 2016 Your usage of if-statements is wrong. Have you read tutorials like this one yet? This image is helpful to visualize the flow of control using if-statements and jumps. Link to comment Share on other sites More sharing options...
renjiabarai Posted December 8, 2016 Author Share Posted December 8, 2016 (edited) Your usage of if-statements is wrong. Have you read tutorials like this one yet? This image is helpful to visualize the flow of control using if-statements and jumps. look and don't work. the sphere don't disable {$CLEO .cs} //-------------MAIN--------------- 0662: printstring "Taxi" thread 'Taxi' wait 2500 077E: get_active_interior_to $Active_Interior :taxi_113 wait 0 if and $Active_Interior == 0 key_down 8 jf @taxi_113 [email protected] = Marker.CreateIconAndSphere(23, 721.1144, -533.3041, 16.1797) 0570: [email protected] = create_asset_radar_marker_with_icon 23 at -533.3041 16.1797 134.3008 00D6: if 0 0256: player $PLAYER_CHAR defined 004D: jump_if_false @taxi_113 00D6: if 0 00DF: actor $PLAYER_ACTOR driving 004D: jump_if_false @taxi_113 if 00EC: actor $PLAYER_ACTOR sphere 1 near_point 721.1144 -533.3041 16.1797 radius 5.0 5.0 then Marker.Disable([email protected]) Marker.Disable([email protected]) end jump @taxi_113 Edited December 8, 2016 by renjiabarai Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now