SA-MP Forums Archive
Data Extraction ? - 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: Data Extraction ? (/showthread.php?tid=607421)



Data Extraction ? - sampkinq - 19.05.2016

Hello, I want to take the player's money but it doesn't work. What is the problem ?

Код:
ReadConf()
{
new string[1000], aa, File:filex = fopen("SFCRRPG/DAS.dudb.sav", io_read);
while(fread(filex, string))
{
if(!strcmp(string,"Bankcash "))
{
aa = strval(string);
printf("Bank Cash: %d",aa);
break;
}
}
fclose(filex);
return 1;
}
The cmd screen shows no data.



Re: Data Extraction ? - Stinged - 19.05.2016

Can you show us the format of the file?


Re: Data Extraction ? - sampkinq - 19.05.2016

Quote:
Originally Posted by Stinged
Посмотреть сообщение
Can you show us the format of the file?
I'm sorry for my bad English.