AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   filesize not working? (https://forums.alliedmods.net/showthread.php?t=252822)

avril-lavigne 12-09-2014 22:39

filesize not working?
 
PHP Code:

new const myfile[] = "cached.wad"

public plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR)
    
server_print("file %d"filesize(myfile))    


output always 0
tried file_size, the same result = 0

Arkshine 12-10-2014 05:44

Re: filesize not working?
 
If you get 0 it means file exists but is empty.


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

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