Raised This Month: $404 Target: $400
 101% 

Error 035; argument type mismatch


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Enes05
Junior Member
Join Date: Feb 2018
Location: Istanbul | Turkey
Old 10-12-2018 , 10:01   Error 035; argument type mismatch
Reply With Quote #1

PHP Code:
public void KelimeleriYukle()
{
    
char g_filename[256];
    
BuildPath(g_filenamesizeof(g_filename), "configs/kufurler.txt");
    
Handle file OpenFile(g_filename"rt"false"GAME");
    if (
file)
    {
        
kufur CreateArray(255);
        while (!
IsEndOfFile(file))
        {
            
char line[256];
            if (!
ReadFileLine(filelinesizeof(line)))
            {
                
CloseHandle(file);
                
            }
            else
            {
                
TrimString(line);
                if (!
line[0])
                {
                }
                else
                {
                    
PushArrayString(kufurline);
                }
            }
            
CloseHandle(file);
            
        }
        
CloseHandle(file);
        
    }
    
LogMessage("Could not open file!");
    

This error:
Error 035; argument type mismatch (argument 1)
Error 035; argument type mismatch (argument 2)

How to fix this error?
Enes05 is offline
Crasher_3637
AlliedModders Donor
Join Date: May 2012
Old 10-12-2018 , 11:38   Re: Error 035; argument type mismatch
Reply With Quote #2

You're missing the very first parameter for BuildPath().

https://sm.alliedmods.net/new-api/files/BuildPath
__________________
AFK like JFK
Crasher_3637 is offline
Reply


Thread Tools
Display Modes

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 16:32.


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