• Welcome to Vice City Multiplayer.
 

Pawn data storage?

Started by ricardo, January 17, 2010, 12:56:07 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ricardo

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

Boss

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).

ricardo

ok thank you for your reply but flat files would be inappropriate for my needs.