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

Hi sorry for my english

C:\Users\Yamaha\Desktop\Serveur Secondair RP\gamemodes\sdrp.pwn(14350) : error 035: argument type mismatch (argument 1)


INI_ParseFile(HotelPath(ho), "LoadHotelData", false, true, ho, true, false );
Reply
#2

Show us your HotelPath().
Reply
#3

stock HotelPath(ho)
{
//new Variable[hoIDinfo]; // variable

new Variable[64], hote = ho;

// hote = Variable[hoID] +1;
//Variable[hoID] +1;

format(Variable, 30, "Hotels/%d.ini", Variable);
Variable[hoID] ++; // multiplying

return hote;
}
Reply
#4

delete
Reply
#5

Delete ?
Reply
#6

Код HTML:
stock LoadHotels()
{
	new file[64], count, string[128];

	for(new ho = 0; ho < MAX_HOTELS; ho++)
	{
		format(file, 64, "Hotels/%d.ini", ho);

	    if(fexist(file))
	    {
			INI_ParseFile(HotelPath(ho), "LoadHotelData", false, true, ho, true, false);

	        if(hoInfo[ho][Bought] == 0) {
	        format(string, sizeof(string), "[Hotel]\nLocataire: %s\n Adresse: %d rue Stenlen\nPrix: %d$", hoInfo[ho][Owner], ho, hoInfo[ho][Price]);
    		hoInfo[ho][Label] = Create3DTextLabel(string ,0xB5CACCFF, hoInfo[ho][extX], hoInfo[ho][extY], hoInfo[ho][extZ], 20.0, 0, 1);
    		}

    		if(hoInfo[ho][Bought] == 1) {
	        format(string, sizeof(string), "[Hotel]\nLocataire: %s\nAdresse: %d rue Stenlen\nPlus а louй", hoInfo[ho][Owner], ho);
    		hoInfo[ho][Label] = Create3DTextLabel(string ,0xB5CACCFF, hoInfo[ho][extX], hoInfo[ho][extY], hoInfo[ho][extZ], 20.0, 0, 1);
    		}

			count++;
		}
	}

	return 1;
}
Код HTML:
stock HotelPath(ho)
{
    
	new Variable[64], hote = ho;


	format(Variable, 30, "Hotels/%d.ini", Variable);
    Variable[hoID] ++; // multiplying

	return hote;
}
Reply
#7

your INI_Parse statement's Argument is wrong
Correct one is
PHP код:
INI_ParseFile("myfile.ini""Callback_%s", .bExtra true, .extra playerid); 
Reply
#8

Thanks <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)