some fakemeta questions...
i tried this function:
Code:
|
I would guess by doing this:
Code:
|
i did that first; returns always 0... :cry:
|
or maybe:
Code:
|
Well, I had a chat with BAIL, and this is how to create a named entity:
Code:
If you noticed, the parameter for creating a named entity, requires an int, not a string for classname. So in order to get an int for classname, you pass in a string in the allocstring function and that'll return the id of the classname. And from there you can create your named entity, using the value you got from AllocString for classname. |
So I was on the correct path the first time :P
|
FM is simple. Thats the correct way, but there are other ways.
|
thanks a lot !
i was searching for MakeString instead of AllocString, which doesn't exist..it's so obvious now.. :up: i'm very interested in using FM, can you please give me some hints? where to find info about it? HLSDK? Metamod? AMXX-Source? [edit] i would appreciate it if you could send me code examples using FM. |
Quote:
Quote:
For example my "VIP Alternative", "Fall Scream" and "AFK Bomb Transfer" uses pure FM. |
Yup, just a final word on the forums about MAKE_STRING: it's a macro hack to get the engine to recognize static strings as part of the string table (basically).
It's not a function. Small doesn't have static C strings anyway (not in a way AMX Mod X lets you easily have). It's best just to use AllocString and save the string index for next time you're gonna use the same string. |
| All times are GMT -4. The time now is 05:06. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.