Author Topic: How can I clear them?  (Read 2820 times)

0 Members and 1 Guest are viewing this topic.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
How can I clear them?
« on: January 13, 2013, 10:35:32 am »
Example; you have lost %14 mana 28.00000000000000000000 and souls 11.00000000000000000000000
I want delete zeros, how?

Code is here; http://pastebin.com/MSwXM442


Bonecrusher: use pastebin.com when trying to post a code.
« Last Edit: January 13, 2013, 01:26:02 pm by Bonecrusher »
Is there anybody can write script?
Good, go and play soldat ^^

Offline Furai

  • Administrator
  • Veteran
  • *****
  • Posts: 1908
    • TransHuman Design
Re: How can I clear them?
« Reply #1 on: January 13, 2013, 10:56:48 am »
Please edit your post and remove that code. Please attach the script to your post or use http://pastebin.com (or similar services to host your code).
As to stay on the topic this link may help you.
"My senses are so powerful that I can hear the blood pumping through your veins."

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #2 on: January 13, 2013, 01:33:33 pm »
Please edit your post and remove that code. Please attach the script to your post or use http://pastebin.com (or similar services to host your code).
As to stay on the topic this link may help you.

I dont understand anything :S
What should I do?
Is there anybody can write script?
Good, go and play soldat ^^

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: How can I clear them?
« Reply #3 on: January 13, 2013, 02:49:03 pm »
Are you using beta or stable?
And if beta, then delphi or freepascal build?
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #4 on: January 13, 2013, 04:40:30 pm »
No, I dont know use notepad+ or pascal etc..
Where should I correct in script, code is here, where is wrong?
Is there anybody can write script?
Good, go and play soldat ^^

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: How can I clear them?
« Reply #5 on: January 13, 2013, 05:17:06 pm »
I mean your server version.
Please paste (either in code tags or pastebin) the first 20 lines that server prints when starting
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #6 on: January 14, 2013, 09:46:24 am »
pastebin blocked from my country, access is denied

soldat server 1.6.3-2.7.3
script core v.2.4 loaded. found 5 scripts!
other lines are normal writing
Is there anybody can write script?
Good, go and play soldat ^^

Offline Falcon`

  • Flagrunner
  • ****
  • Posts: 792
  • A wanted lagger
Re: How can I clear them?
« Reply #7 on: January 14, 2013, 11:19:00 am »
Then please check whenever you have same problem with beta server.
If you're not paying for something, you're not the customer; you're the product being sold.
- Andrew Lewis

Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #8 on: January 14, 2013, 12:10:33 pm »
Ohh no, now, I dont download it, cause I dont want correct them, oohh long work needed :)
Thanks.
Is there anybody can write script?
Good, go and play soldat ^^

Offline rOy

  • Soldier
  • **
  • Posts: 120
Re: How can I clear them?
« Reply #9 on: January 16, 2013, 05:23:18 pm »
...Crap...
« Last Edit: January 18, 2013, 04:33:11 pm by rOy »

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: How can I clear them?
« Reply #10 on: January 17, 2013, 11:16:28 am »
Why can't people write properly?

--

RoundTo has been changed: it no longer removes trailing zeros (http://bugs.soldat.pl/view.php?id=15). To remove them, you must use a function that outputs a string. Luckily, Shoozza added formatfloat() to the 2.7.4 server. But if you don't want to wait, use this:

Code: [Select]
function formatfloat(input: single; digits: integer): string;
var intext: string;
begin
intext := floattostr(input);
result := getpiece(intext,'.',0) + '.' + copy(getpiece(intext,'.',1),1,digits);
end;
www.soldatx.com.br - The brazilian Soldat community.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #11 on: January 17, 2013, 12:57:18 pm »
How can I use it?
Where need to write? (in script, or where)
Is there anybody can write script?
Good, go and play soldat ^^

Offline rOy

  • Soldier
  • **
  • Posts: 120
Re: How can I clear them?
« Reply #12 on: January 18, 2013, 04:13:12 pm »
Hey

Nice Squiddy!

Btw here is fix ZRPG script (with Squiddy's fix)

Note: I not tested in game this script...

Good Luck [pigtail]
« Last Edit: January 18, 2013, 04:15:54 pm by rOy »

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #13 on: January 21, 2013, 11:41:04 am »
No, I translated my script to Turkish.
I want squiddy fix, I want know how can I correct it.
Is there anybody can write script?
Good, go and play soldat ^^

Offline rOy

  • Soldier
  • **
  • Posts: 120
Re: How can I clear them?
« Reply #14 on: January 21, 2013, 07:07:03 pm »
No, I translated my script to Turkish.
I want squiddy fix, I want know how can I correct it.

Hey

Insert the script and I'll add the remaining element

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: How can I clear them?
« Reply #15 on: January 21, 2013, 07:09:57 pm »
Yeah, it would be a lot easier if you attached your current script :)
www.soldatx.com.br - The brazilian Soldat community.

Offline rOy

  • Soldier
  • **
  • Posts: 120
Re: How can I clear them?
« Reply #16 on: January 22, 2013, 09:58:28 am »
Hi
Missing you a lot

Code: [Select]
procedure UseSkill(ID: byte; SkillStrRaw: string);
var output: string; skill, curlvl: integer; oldmana,oldsouls: single; color: longint;
begin
skill := skillnumbyname(skillstrraw);
output := '';
color := $ffcc4444;
if skill >= 0 then begin
   curlvl := player[ID].skills[skill];
   if curlvl > 0 then begin
      if getplayerstat(ID,'alive') then begin
         if player[ID].mana >= skills[skill][curlvl].mcost then begin
            if player[ID].souls >= skills[skill][curlvl].scost then begin
               if player[ID].cooldown[skill] = 0 t

if player[ID].cooldown[skill] = 0 t ?

Script is not complete

Here is a complete + fix

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: How can I clear them?
« Reply #17 on: January 22, 2013, 10:02:56 am »
Attach it, not copy-paste it. It's terrible for reading :\
www.soldatx.com.br - The brazilian Soldat community.

Offline MrHamsTR

  • Soldier
  • **
  • Posts: 209
  • One day, everything will end..
Re: How can I clear them?
« Reply #18 on: January 22, 2013, 10:38:43 am »
Script here;
Is there anybody can write script?
Good, go and play soldat ^^

Offline squiddy

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 333
  • Flagger assassin
    • SoldatX
Re: How can I clear them?
« Reply #19 on: January 22, 2013, 12:20:34 pm »
This should fix all your problems. :)
www.soldatx.com.br - The brazilian Soldat community.