Hello. Please help me with Y_Ini error. - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Hello. Please help me with Y_Ini error. (
/showthread.php?tid=458354)
Hello. Please help me with Y_Ini error. -
hariboo - 16.08.2013
Hello. I want to be quick. So i wrote a row which should read IP from my text file, but i get this error.
Quote:
warning 202: number of arguments does not match definition
error 035: argument type mismatch (argument 2)
|
Код:
INI_Open(PlayerFile);
GetPlayerIp(playerid, PlayerIP, sizeof(PlayerIP));
if(!strcmp(PlayerIP, INI_ReadString("IP"))) // THIS LINE
{
}
thanks for help!
Re: Hello. Please help me with Y_Ini error. -
IceBilizard - 16.08.2013
try
pawn Код:
if(!strcmp(PlayerIP, INI_ReadString(PlayerIP,"PlayerIP",16))) // THIS LINE
{
//code
}
Re: Hello. Please help me with Y_Ini error. -
hariboo - 16.08.2013
does not work
Quote:
error 035: argument type mismatch (argument 2)
|
Re: Hello. Please help me with Y_Ini error. -
IceBilizard - 16.08.2013
Remove 16 from code then try like
pawn Код:
if(!strcmp(PlayerIP, INI_ReadString(PlayerIP,"PlayerIP"))) // THIS LINE
{
//code
}
Re: Hello. Please help me with Y_Ini error. -
hariboo - 16.08.2013
Quote:
error 035: argument type mismatch (argument 2)
|
the same..
Re: Hello. Please help me with Y_Ini error. -
hariboo - 16.08.2013
BUMP. I really need this to be fixed.