Ok, i know this is my second thread. But anyways i was wondering if i wanted to use the login procedure from the core file? If it helps the file i want to use is called Login.
![]()
![]()
Ok, i know this is my second thread. But anyways i was wondering if i wanted to use the login procedure from the core file? If it helps the file i want to use is called Login.
![]()
![]()
write {.include SRL\SRL.scar} at the top of your scritpt and it will include all the files in SRL\Core\
Join the Official SRL IRC channel. Learn how to Here.
Ok, i get that but the problem is how would i use a certain procedure from a .scar file? Now i'm getting duplicate identifier "LOGINPLAYER"
Ok you know how when you don't use an include, the script kinda looks like this:
Well when you include an include like srl by doing {.inclulde srl\srl.scar}, all the procedures and functions in that include are sorta in the procedure section automatically. You don't need to put them in there.Code:Program new; // maybe intro text here type //types, if needed const // constants, if needed var //variables, if needed // ------Procedure Section procedure p1; begin //blah blah end; procedure p2; begin //blah blah end; // --------- end Procedure Section //Main loop begin p1; end.
So to use a procedure from SRL, just put {.include srl\srl.scar} near the top, and SetUpSRL; in the main loop. Then just call the procedure normally, as if it was in the procedure section.
Duplicate indentifier probably means that you have a procedure in the procedure section that is already in SRL, loginplayer. Just take it out of the procedure section because it's already in SRL which you included.
There are currently 1 users browsing this thread. (0 members and 1 guests)