06.06.2011, 00:15
I am kinda confused with strcmp and getting the string from a file. I want to know if, I want to get a name from a string and compare it with the variable 'Name' and let it return that it is found, if I would use :
Or
Asuming that in the file, Name=Tee.
I don't really understand the example on wiki samp about getting the string from a textfile and if it's found, would it return the length of the string?
pawn Код:
strcmp(Name,dini_Get(file,"Name"),false,strlen(Name))
pawn Код:
if(strcmp(dini_Get(file,"Name"),Name,false) == 0)
I don't really understand the example on wiki samp about getting the string from a textfile and if it's found, would it return the length of the string?

