SA-MP Forums Archive
JoinCounter.cfg - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: JoinCounter.cfg (/showthread.php?tid=169698)



JoinCounter.cfg - Jimmeh! - 20.08.2010

Can anyone help me solve this problem?? This is a large part of my server log:

Код:
----------
Loaded log file: "server_log.txt".
----------

SA-MP Dedicated Server
----------------------
v0.3a R8, ©2005-2010 SA-MP Team

[11:45:43] 
[11:45:43] Server Plugins
[11:45:43] --------------
[11:45:43]  Loaded 0 plugins.

[11:45:43] 
[11:45:43] Filter Scripts
[11:45:43] ---------------
[11:45:43]   Loading filter script 'base.amx'...
[11:45:43] 
--Base FS loaded.

[11:45:43]   Loading filter script 'gl_actions.amx'...
[11:45:43]   Loading filter script 'gl_property.amx'...
[11:45:43] 
-----------------------------------
[11:45:43] Grand Larceny Property Filterscript		
[11:45:43] -----------------------------------

[11:45:43]   Loading filter script 'gl_realtime.amx'...
[11:45:43]   Loaded 4 filter scripts.

[11:45:43] file "New York Roleplay/Other/JoinCounter.cfg" created with JoinCounter variable (0 visitors)



Re: JoinCounter.cfg - ScottCFR - 20.08.2010

NVM DELETE THIS


Re: JoinCounter.cfg - Jimmeh! - 20.08.2010

Quote:
Originally Posted by ScottCFR
Посмотреть сообщение
NVM DELETE THIS
So it should look like this?

Код:
public OnGameModeInit()
	PlayerJoins += 1;
{
	if(fexist("New York Roleplay/Other/JoinCounter.cfg"))
	{
	    JoinCounter = dini_Int("New York Roleplay/Other/JoinCounter.cfg", "Connections");
	    printf("file \"JoinCounter.txt\" located, variable JoinCounter loaded (%d visitors)", JoinCounter);
	}
	else
	{
	    dini_Create("New York Roleplay/Other/JoinCounter.cfg");
	    dini_IntSet("New York Roleplay/Other/JoinCounter.cfg", "Connections", 0);
	    print("file \"New York Roleplay/Other/JoinCounter.cfg\" created with JoinCounter variable (0 visitors)");
	}