Help with INI - 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: Help with INI (
/showthread.php?tid=656673)
Help with INI -
byAppeL - 21.07.2018
Hi there, im trying to read and .txt file and compare it with some string, like
.txt :
Hola
string:
xd
if i compare these it will return false, i hope u will understand me. i dont speak english very well xd
Re: Help with INI -
mongi - 21.07.2018
Mind showing your code?
Re: Help with INI -
byAppeL - 21.07.2018
PHP код:
new File:INI = fopen("fileadaw.txt", io_read);
new lectura[256];
if(INI){
while(fread(INI, lectura)) print(lectura);
fclose(INI);
}else{ printf("The file doesn't exists"); }
new playerName[48];
playerName = "adwadwa";
if(!strcmp(playerName, lectura))
{
printf("it works");
}else{ printf("nop"); }
return 1;
Re: Help with INI -
byAppeL - 21.07.2018
UP!, Help meee