Raised This Month: $32 Target: $400
 8% 

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
Psyk0tik
Veteran Member
Join Date: May 2012
Location: Homeless
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
__________________
Psyk0tik 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 23:11.


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