SA-MP Forums Archive
Criminal record system - 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: Criminal record system (/showthread.php?tid=355270)



Criminal record system - seanny - 29.06.2012

I am wondering, is the possible to make a criminal record system where the players crimes are saved permanently into their playerfile, is it possible with normal file functions?


Re: Criminal record system - iGetty - 29.06.2012

Yes..
What file saving system do you use?


Re: Criminal record system - seanny - 29.06.2012

Normal SAMP file functions.

fcreate(), fread() and etc.


Re: Criminal record system - seanny - 30.06.2012

Sorry for the bump, but could I know is it possible with Normal SAMP File functions?


Re: Criminal record system - MadeMan - 30.06.2012

Yes.


Re: Criminal record system - Steven82 - 30.06.2012

How everything else is saved, just copy those and change to the values you want to save. Are you using an edited script?


Re: Criminal record system - seanny - 30.06.2012

Quote:
Originally Posted by Steven82
Посмотреть сообщение
How everything else is saved, just copy those and change to the values you want to save. Are you using an edited script?
Yes, I am editing the Public Enemy script and converting it into a Roleplay script, just as a free time thing, nothing serious.

@Saving: But if I where to just add the values to the account, then the playerfile will be spammed with the Criminal Record, half of which will be empty.


Re: Criminal record system - Steven82 - 01.07.2012

Then don't save it under the main players user file, create a new folder and make a whole new save location with the players name which has all the criminal record saved. And by using this method, you could access the players information with them not being online.


Re: Criminal record system - seanny - 01.07.2012

Quote:
Originally Posted by Steven82
Посмотреть сообщение
Then don't save it under the main players user file, create a new folder and make a whole new save location with the players name which has all the criminal record saved. And by using this method, you could access the players information with them not being online.
How come I never thought of that?! Thank you so much. Rep+'ed.