is there a code that will go and get the xp left till my players next mining lvl out there
is there a code that will go and get the xp left till my players next mining lvl out there
SCAR Code:XPTillNextLevel(Level: String);
![]()
for mining specifically though, it'd be XPTillNextLevel('mining');
wut am i doing wrong i get this errorCode:procedure Proggy; begin WriteLn(' _____ ______') WriteLn(' | || \') WriteLn(' | || |') WriteLn(' | || ___/') WriteLn(' /_____/ |__| ') writeLn('____________________________________________') writeln('Script has been running for ' +TimeRunning); Players[CurrentPlayer].Integers[3] := GetSkillInfo('mining', False); WriteLn('your mining lvl is ' + IntToStr(Players[CurrentPlayer].integers[3])); WriteLn('exp to next lvl is '+ XPTillNextLevel('Mining': String); <----------error line WriteLn('Player '+ Players[CurrentPlayer].Nick); WriteLn('loads done '+ IntToStr(g)); WriteLn('primary ores mined ' + IntToStr(u)); WriteLn('secondary ores mined ' + IntToStr(l)); WriteLn('gems dropped ' + IntToStr(f)); writeLn('plz post the proggie here http://www.villavu.com/forum/showthr...565#post542565'); end;
Line 366: [Error] (17710:56): comma (',') expected in script
btw the diagram thing looks a lot better in scar then on here
Remove the part that says : String after 'Mining'. You don't add that when you're passing arguments to functions, only when declaring them.
:-)
haha I showed you how to use it, I put it right in my post how to add it into a script using the mining skill, but nice try anyway, soon you'll learn what to put in the parenthesis even when it's your first time looking at a procedure/function. Goodluck scripting and if you need anymore help PM me or another scripter.
By the way, pretty nice looking proggy![]()
got it i just had to make it an integer like the mining lvl ty all so much
next thing wrong with my script then it pretty good for now
for auto responding in smart do i just use the normal type send or do i have to use a special one
Last edited by JPHamlett; 04-09-2009 at 03:25 AM.
There are currently 1 users browsing this thread. (0 members and 1 guests)