29.11.2009, 20:17
Use any file function system (original File Functions, dINI etc)
I recommend dINI
Example code:
I recommend dINI
Example code:
pawn Код:
//bottom of onplayerconnect:
if(!dini_Exists("playercount.ini"))
{
dini_Create("playercount.ini");
dini_IntSet("playercount.ini", "pCount", 0);
dini_IntSet("playercount.ini", "aCount", 0);
}
dini_IntSet("playercount.ini", "pCount", dini_Int("playercount.ini", pCount)+pCount);
dini_IntSet("playercount.ini", "aCount", dini_Int("playercount.ini", aCount)+aCount);