AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Help with strbreak (https://forums.alliedmods.net/showthread.php?t=12184)

Infra 04-07-2005 14:31

Help with strbreak
 
What does this function do?

I would like to be able to split this line into the command and the value:

command "value"


Note: This line is inside a file, so I can't use any of the read_arg functions

Is the strbreak function what I'm looking for? Should I use some other function? Or make my own?

Thanks

xeroblood 04-08-2005 12:43

from string.inc:
Code:
/* Gets parameters from text. * Example: to split text: "^"This is^" the best year", * call function like this: parse(text,arg1,len1,arg2,len2,arg3,len3,arg4,len4) * and you will get: "This is", "the", "best", "year" * Function returns number of parsed parameters. */ native parse(const text[], ... );

Twilight Suzuka 04-08-2005 12:45

Parse is not as good as strbreak, but is used in the same way.

Infra 04-08-2005 22:53

So, I'm correct in assuming that it will work.

Thanks guys...


All times are GMT -4. The time now is 10:03.

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