View Single Post
berni
SourceMod Plugin Approver
Join Date: May 2007
Location: Austria
Old 02-23-2011 , 08:23   Re: [EXTENSION] Config (1.0.2)
Reply With Quote #37

The Parameter errorLine of the native ConfigReadFile isn't working correctly, it's returning garbish.

PHP Code:
decl String:errorMessage[64], String:path[PLATFORM_MAX_PATH];
    new 
errorLine;

    if (!
ConfigReadFile(configpatherrorMessagesizeof(errorMessage), errorLine)) {
        
LogError("Can't read config file \"%s\" (Error: \"%s\" on line %d)"patherrorMessageerrorLine);
        return;
    } 
Returns: Can't read config file "xyz.cfg" (Error: "syntax error" on line -1378652702)
__________________
Why reinvent the wheel ? Download smlib with over 350 useful functions.

When people ask me "Plz" just because it's shorter than "Please" I feel perfectly justified to answer "No" because it's shorter than "Yes"
powered by Core i7 3770k | 32GB DDR3 1886Mhz | 2x Vertex4 SSD Raid0
berni is offline