SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 04/07/2018, 11:34 AM   #1
Huge Clucker
Dice_'s Avatar
Join Date: Sep 2015
Location: Indonesia
Posts: 451
Reputation: 57
Default Optimize this code

how do I optimize this code to reduce lines and makes more understandable?

PHP Code:
        if(GetVehicleEngineType(modelid) == 'H')
format(typestr16"Human Powered");
        else if(
GetVehicleEngineType(modelid) == 'D')
        else if(
GetVehicleEngineType(modelid) == 'P')
        else if(
GetVehicleEngineType(modelid) == 'E')
Dice_ is offline   Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Help me optimize the code skiplovebra Scripting Help 12 14/09/2017 09:25 AM
You can optimize this code? wharlos Scripting Help 5 03/07/2016 08:49 PM
optimize code JoshNudock Scripting Help 4 22/06/2015 08:38 PM
Optimize this code... Baltimore Scripting Help 3 15/11/2014 08:45 PM
help me to optimize my code armyoftwo Help Archive 3 14/11/2010 11:19 AM

All times are GMT. The time now is 04:46 AM.

Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.