SA-MP Forums Archive
Checking if string is writen in .ini file (y_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: Checking if string is writen in .ini file (y_ini) (/showthread.php?tid=486040)



Checking if string is writen in .ini file (y_ini) - Riwerry - 06.01.2014

Guys, pls I need help, I have in my ini file written string. I want to make "if" this string is writen in this file but I do not have idea how to make it, im using y_ini


Re: Checking if string is writen in .ini file (y_ini) - FailerZ - 06.01.2014

If you are using y_ini then you have a code to read from the file and then it will save it in variable, so compare using strcmp or sscanf (maybe?)
or you can show us the code so we can help you better.


Re: Checking if string is writen in .ini file (y_ini) - Riwerry - 06.01.2014

Yeah I have saved it in variable but now how I can make "if" from that? Variable where is string saved is Characters [playerid][Character1]


Re: Checking if string is writen in .ini file (y_ini) - FailerZ - 06.01.2014

Can you show me your var and the string that you want to find it in the .ini file ?
EDIT: OT:Sorry getting late here gotta go sleep, find someone else to help ya


Re: Checking if string is writen in .ini file (y_ini) - Riwerry - 06.01.2014

variable: Characters [playerid][Character1]

Character1 = Name_Lastname //its saving by inputtext