Raised This Month: $ Target: $400
 0% 

filesize not working?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
avril-lavigne
Banned
Join Date: Apr 2009
Old 12-09-2014 , 22:39   filesize not working?
Reply With Quote #1

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
__________________
VDS in Europe 1 gb/s unmetered.Any configurations.
I accept Paypal, Moneybookers,etc
avril-lavigne is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 12-10-2014 , 05:44   Re: filesize not working?
Reply With Quote #2

If you get 0 it means file exists but is empty.
__________________
Arkshine is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:13.


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