error 035: argument type mismatch (argument 1) -
Sirop - 21.05.2016
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 );
Re: error 035: argument type mismatch (argument 1) -
Dayrion - 21.05.2016
Show us your HotelPath().
Re: error 035: argument type mismatch (argument 1) -
Sirop - 21.05.2016
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;
}
Re: error 035: argument type mismatch (argument 1) -
xTURBOx - 21.05.2016
delete
Re: error 035: argument type mismatch (argument 1) -
Sirop - 21.05.2016
Delete ?
Re: error 035: argument type mismatch (argument 1) -
Sirop - 21.05.2016
Код 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;
}
Re: error 035: argument type mismatch (argument 1) -
SyS - 21.05.2016
your INI_Parse statement's Argument is wrong
Correct one is
PHP код:
INI_ParseFile("myfile.ini", "Callback_%s", .bExtra = true, .extra = playerid);
Re: error 035: argument type mismatch (argument 1) -
Sirop - 21.05.2016
Thanks
<3