SA-MP Forums Archive
Simple Save - 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: Simple Save (/showthread.php?tid=450746)



Simple Save - RandomDude - 14.07.2013

Basically I have a drug system
When the player quits the drugs all go back to 0 but I want them to save in a file...

pawn Код:
CMD:dinv(playerid,params[])
{
    new string[128];
    format(string,sizeof(string),"You have %d drugs on you!",PlayerInfo[playerid][drugs]);
    SendClientMessage(playerid,-1,string);
    return 1;
}