error 035: argument type mismatch (argument 1)
#5

You can't do that, you can use Dini and ini file at the same time but do not use variables for the same file.

PHP код:
if(rcInfo[raceinc] != true && rcInfo[racestar] != true)
{
    new 
string[20];
    
format(stringsizeof(string), "%s"inputtext);
    
rcInfo[namebuild] = stringrcInfo[buildrace] = truercInfo[playercreaterc] = playerid;
                                    
//..
    
new INI:File INI_Open(FolderRaces(inputtext)); // new ini
    
INI_SetTag(File"Information race");
    
INI_WriteString(File"name"inputtext);
    
INI_WriteInt(File"checkpoints"0);
    
INI_WriteInt(File"vehicle"0);
    
INI_WriteFloat(File"sizeveh"0.0);
    
INI_WriteFloat(File"angleveh"0.0);
    
INI_Close(File); // close

    
Loop(x5)
    {
        
// new var file dini ("dini read and write( e.g=5)" ini(e.g = 5).).
        
format(stringsizeof(string), "BestRacerTime_%d"x);
        
dini_Set(Filebstring"0");
        
format(stringsizeof(string), "BestRacer_%d"x);
        
dini_Set(Filebstring"noone");
    } 
You should use INI for the two if it is the same system.

PHP код:
if(rcInfo[raceinc] != true && rcInfo[racestar] != true)
{
    new 
string[20];
    
format(stringsizeof(string), "%s"inputtext);
    
rcInfo[namebuild] = stringrcInfo[buildrace] = truercInfo[playercreaterc] = playerid;
                                    
//..
    
new INI:File INI_Open(FolderRaces(inputtext)); // new ini
    
INI_SetTag(File"Information race");
    
INI_WriteString(File"name"inputtext);
    
INI_WriteInt(File"checkpoints"0);
    
INI_WriteInt(File"vehicle"0);
    
INI_WriteFloat(File"sizeveh"0.0);
    
INI_WriteFloat(File"angleveh"0.0);
    
    for(new 
x!= 55++)
    {
        
strdel(string020);
        
format(stringsizeof(string), "BestRacerTime_%d"x);
        
INI_WriteString(Filestring"data save ?");
        
        
strdel(string020);
        
format(stringsizeof(string"BestRacer_%d"x);
        
INI_WriteString(Filestring"data save ?");
    }
    
INI_Close(File); // close

Reply


Messages In This Thread
error 035: argument type mismatch (argument 1) - by paulbobin - 01.04.2015, 14:17
Re: error 035: argument type mismatch (argument 1) - by Gammix - 01.04.2015, 15:32
Re: error 035: argument type mismatch (argument 1) - by BroZeus - 01.04.2015, 15:37
Re: error 035: argument type mismatch (argument 1) - by paulbobin - 02.04.2015, 03:54
Respuesta: error 035: argument type mismatch (argument 1) - by JuanStone - 02.04.2015, 06:01
Re: error 035: argument type mismatch (argument 1) - by Crayder - 02.04.2015, 06:18

Forum Jump:


Users browsing this thread: 1 Guest(s)