Please help with Co...
 
Notifications
Clear all

Please help with Code

2 Posts
2 Users
0 Reactions
98 Views
(@jeanv78)
New Member
Joined: 3 months ago
Posts: 1
Topic starter  

Hi Everyone,

 

Firstly I am not efficient in this or any type of coding whatsoever.

I have been just messing about trying to make dashboards for my own use.

 

Please could someone assist me as I cannot figure out how to do this.

I have written code for all the car brands with images. Everything is working well.

there is only one car that I cant get right cause it has an apostrophe in the name.

So it keeps coming back with an error. below is just a quick example of it in bold.

How do I do this?

 

Thanks

 

Jean

 

 var raceposition = getopponentleaderboardposition_aheadbehind(0)
var Aston = 'C:\\Program Files (x86)\\SimHub\\ImageLibrary\\Aston.png'
var carname = $prop('CarModel')

if(carname=='D'station Racing'){return Aston}


   
Quote
(@djgsi974)
Eminent Member
Joined: 2 years ago
Posts: 17
 

if(carname=="D'station Racing"){return Aston}


   
ReplyQuote
Share: