AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Function Issues (https://forums.alliedmods.net/showthread.php?t=21851)

Grimm Spector 12-11-2005 23:41

Function Issues
 
Have the numtostr and strtonum functions moved to another module I don't have?

I try to compile older scripts and these things don't exist anymore...

I tried the search forum function but it brings up pages with NO mention of the string, so don't bash or flame me for not searching, just help me out guys, thanks.

XxAvalanchexX 12-12-2005 01:01

They're now num_to_str and str_to_num

Grimm Spector 12-12-2005 23:42

Ahhhhhhhhhh! thank you!!


what about the get_ent function??

v3x 12-13-2005 07:18

Show me the plugin that contains that function. If I'm correct, it returns the total # of ents matching the specified classname. I think this is for NS though..

If you're trying to do just that, try this out:
Code:
stock get_ent(classname[]) {   new iEnt, iNum = 0;   while((find_ent_by_class(iEnt, classname)) != 0)     iNum++;   return iNum; }


All times are GMT -4. The time now is 15:46.

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