SRL Archive - News and General

Where do i put my useragent


7 75

2015-05-11 16:44:10

hello i'm having trouble starting a script.

It tells me to copy my useragent and put it in the form:

No UserAgent detected. Opening up webpage to get userAgent
Copy your useragent text and paste it into the form

i put my user agent in this part:

smartUserAgent := playerForm.players.settings[5]; (********i put my useragent here********) //useragent

and it says Error: Unknown declaration "Mozilla" at line 119
Compiling failed.

any help will be appreciated, script is ashmansherblore
already pm'd him yesterday still waiting for a reply :)
mod please move if it's in the wrong spot

KeepBotting

2015-05-11 16:46:24

In its current state, the script is pulling your useragent from the SRL Player Form. If you want to set it manually, you'll need to declare it as a string.

For example, if I wanted to declare my useragent, I'd replace that line with:
smartUserAgent := 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0';

Although you should just be able to paste your useragent string into the SRL Player Form itself, as the script instructs.

7 75

2015-05-11 16:54:13

ah thank you and so I just put my useragent in how you did it the second time and it gave me this error:

Error: Operator expected at line 121
Compiling failed.

print('slots: ' + toStr(slots));

7 75

2015-05-11 16:58:16

From: KeepBotting
In its current state, the script is pulling your useragent from the SRL Player Form. If you want to set it manually, you'll need to declare it as a string.

For example, if I wanted to declare my useragent, I'd replace that line with:
smartUserAgent := 'Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:37.0) Gecko/20100101 Firefox/37.0';

Although you should just be able to paste your useragent string into the SRL Player Form itself, as the script instructs.


ahh!!! this worked for me now.
thanks a lot really appreciate your time and help :)

EDIT: actually it is saying the same thing as before

7 75

2015-05-11 17:03:35

How do i paste it into my srl player form (can't find it)

Incurable

2015-05-11 18:17:20

From: 7 75
How do i paste it into my srl player form (can't find it)


Please don't multi-post, just edit your posts instead. Unless the script has been written incorrectly the SPF will load when you run the script.