Script help
Posted: 16 Nov 2019 02:37
Hey im trying to change variable value of service_state from the standard 0, 1, 2 and 3 to a text format. Lol ive tried a few different approaches but ultimately i have no idea what im doin... i do try though.
Here is my script. Please let me know how easy it is to fix it!!
(Keep in mind i am a total noob and the tutorials and script examples are not enough for me to understand script operations
SCRIPT:
global_phone_service_state = {service_state};
if(global_phone_service_state==0)
{
replace(global_phone_service_state, 0, "in service");
};
if(global_phone_service_state==1)
{
replace(global_phone_service_state, 1, "out of service");
};
if(global_phone_service_state==2)
{
replace(global_phone_service_state, 2, "emergencies only");
};
if(global_phone_service_state==3)
{
replace(global_phone_service_state, 3, "phone off");
};
Here is my script. Please let me know how easy it is to fix it!!
(Keep in mind i am a total noob and the tutorials and script examples are not enough for me to understand script operations
SCRIPT:
global_phone_service_state = {service_state};
if(global_phone_service_state==0)
{
replace(global_phone_service_state, 0, "in service");
};
if(global_phone_service_state==1)
{
replace(global_phone_service_state, 1, "out of service");
};
if(global_phone_service_state==2)
{
replace(global_phone_service_state, 2, "emergencies only");
};
if(global_phone_service_state==3)
{
replace(global_phone_service_state, 3, "phone off");
};