Vice City Multiplayer

VC:MP => mIRC/pawn Scripting => Topic started by: ricardo on January 17, 2010, 01:56:07 AM

Title: Pawn data storage?
Post by: ricardo on January 17, 2010, 01:56:07 AM
Hi,

would someone please tell me what/all methods of permanently storing data we have in pawn, i can only see "Dini.inc" (ini files).

thankyou
Title: Re: Pawn data storage?
Post by: Boss on January 17, 2010, 03:22:39 AM
Since afaik plugins are not yet supported, there is no way of using all those fancy MySQL plugins made for SA-MP, so you're left with storing data in plan text files. For that purpose, you should use the functions from file.inc. Open data stream with fopen, write the stuff you need with fwrite and close the stream with fclose. You can then access the stored data by using fread (don't forget to open and close the stream too).
Title: Re: Pawn data storage?
Post by: ricardo on January 17, 2010, 04:14:27 AM
ok thank you for your reply but flat files would be inappropriate for my needs.