AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   How long is a string? (https://forums.alliedmods.net/showthread.php?t=12857)

BioHazardousWaste 04-26-2005 21:32

How long is a string?
 
new MyString[10]
format(MyString, 9, "Hello")

Assuming the numbers stand for blank spaces, will MyString return "Hello1234", "Hello12345" or "Hello"?

johnjg75 04-26-2005 21:42

Hello,0 but it'll just return "Hello"

BioHazardousWaste 04-26-2005 21:50

Damn.. is there a way to force it to fill up the rest? because I want to save a bunch of vars to vault, then reload them and parse them apart. Unfortunately, I don't think I can parse them w/o knowing the length... I may have to right my own parse function.


All times are GMT -4. The time now is 16:39.

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