AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Getting file all lines number... (https://forums.alliedmods.net/showthread.php?t=26120)

SlimDog 03-27-2006 09:19

Getting file all lines number...
 
Let's say that I have a file:
Code:
        new cfgdir[256]         get_configsdir(cfgdir , 255);         format(cfgdir , 255 , "%s/predictions.txt");

Is there a way to get a number of lines in it? Because i want to use it in here:

Code:
new line = random_num(6,"all lines in that file number")

EDIT: Or maybe it's impossible?

Xanimos 03-27-2006 10:55

http://amxmodx.org/funcwiki.php?sear...size&go=search

SlimDog 03-27-2006 11:03

Quote:

Originally Posted by Suicid3
http://amxmodx.org/funcwiki.php?search=file_size&go=search

Thanks!


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

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