AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Issue with formatex... Perhaps I'm retarded ?? (https://forums.alliedmods.net/showthread.php?t=27631)

Geesu 04-25-2006 23:08

Issue with formatex... Perhaps I'm retarded ??
 
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?

BAILOPAN 04-25-2006 23:09

If the definition has two %s strings in it, you must pass them in.

Geesu 04-25-2006 23:33

TY I'm retarded


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

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