Raised This Month: $ Target: $400
 0% 

Issue with formatex... Perhaps I'm retarded ??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-25-2006 , 23:08   Issue with formatex... Perhaps I'm retarded ??
Reply With Quote #1

So here is the code:

Code:
formatex( skill_desc, len, "%L", id, szSkillHelper );

and I'm getting the following error: Run time error 25: parameter error

szSkillHelper contains a language data key: RACE1_SKILL0_DESC

And the value of RACE1_SKILL0_DESC in the language file is:

Quote:
Increases player's maximum speed by <%s>. All weapons move at same speed. Player's gravity is also decreased by <%s>.
So I take it formatex needs to be used when you have all of the parameters???

So I should just use format then? or am I missing something?
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
BAILOPAN
Join Date: Jan 2004
Old 04-25-2006 , 23:09  
Reply With Quote #2

If the definition has two %s strings in it, you must pass them in.
BAILOPAN is offline
Geesu
Veteran Member
Join Date: Mar 2004
Location: Cincinnati, OH
Old 04-25-2006 , 23:33  
Reply With Quote #3

TY I'm retarded
__________________
Need war3ft help? DO NOT PM ME... Check the forums
Geesu is offline
Send a message via AIM to Geesu Send a message via MSN to Geesu
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:14.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode