Official Pawn forums Forum Index
  
Small bug when parsing a complex string

 
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Bug Reports
View previous topic :: View next topic  
Author Message
Bracq



Joined: 04 May 2008
Posts: 1

PostPosted: Sun May 04, 2008 2:35 am    Post subject: Small bug when parsing a complex string Reply with quote

Hello Vger,

First, i'd like to thank you for this awesome mod !
Really, it's a "must have" for every player.

I'm actually working on a french localization.lua file.

I think i found a little bug in the Pawn.lua file, when trying to parse a complex string.

At line 891 :
InnerStatLine = string.sub(CurrentParseText, Pos, NextPos - Pos)
should be
InnerStatLine = string.sub(CurrentParseText, Pos, NextPos - 1 )

I could be wrong of course, because i'm not dealing with LUA for a long time :) but it seems to work better like that.

Hope this will help.

Sincerly,

Bracq
Proud hunter
Officer of Coeur d'opaline
Elune / EU
Back to top
View user's profileSend private message
Vger
Pawn Mod Creator


Joined: 09 Jul 2007
Posts: 120
Location: Azjol-Nerub (US)

PostPosted: Mon May 19, 2008 10:55 am    Post subject: Reply with quote

Hmmm, looks like you're right. Most substring functions take a number of characters for the third argument, not another character index. Thanks for the heads-up; I'll fix this for the next version.
Back to top
View user's profileSend private messageVisit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Official Pawn forums Forum Index -> Bug Reports All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum