[Tutorial] Player Variables vs Normal Variables.
#11

Quote:
Originally Posted by Calgon
View Post
Code:
CMD:testunit(playerid, params[])
{
    new
        HasAccount[MAX_PLAYERS],
        test[2][2],
		playerName[MAX_PLAYER_NAME];

	GetPlayerName(playerid, playerName, MAX_PLAYER_NAME);

	test[0][0] = GetTickCount();
	
	for(new gg = 0; gg < 100000; gg ++ ) SetPVarInt(playerid, "HasAccount", 1);
	
	test[0][1] = GetTickCount();
	
	test[1][0] = GetTickCount();
	for(new gg = 0; gg < 100000; gg ++ ) HasAccount[playerid] = true;
	
	test[1][1] = GetTickCount();
	
	printf("[PVARS TEST] Test Start: %d | Test End: %d | Test Duration: %d", test[0][0], test[0][1], test[0][1] - test[0][0]);
	printf("[VARIABLE TEST] Test Start: %d | Test End: %d | Test Duration: %d", test[1][0], test[1][1], test[1][1] - test[1][0]);
	
	return 1;
}
Just tested, with my own code this time:

[20:54:47] [PVARS TEST] Test Start: 98331 | Test End: 98354 | Test Duration: 23
[20:54:47] [VARIABLE TEST] Test Start: 98354 | Test End: 98357 | Test Duration: 3
Good, once again PVars failed
Reply


Messages In This Thread
Player Variables vs Normal Variables. - by Carlton - 20.07.2010, 02:52
Re: Player Variables vs Normal Variables. - by krisk - 20.07.2010, 03:01
Re: Player Variables vs Normal Variables. - by [HiC]TheKiller - 20.07.2010, 04:39
Re: Player Variables vs Normal Variables. - by Calgon - 20.07.2010, 05:02
Re: Player Variables vs Normal Variables. - by Carlton - 20.07.2010, 20:02
Re: Player Variables vs Normal Variables. - by [03]Garsino - 11.08.2010, 18:08
Re: Player Variables vs Normal Variables. - by ikey07 - 11.08.2010, 19:32
Re: Player Variables vs Normal Variables. - by Calgon - 11.08.2010, 19:37
Re: Player Variables vs Normal Variables. - by Jeffry - 11.08.2010, 19:41
Re: Player Variables vs Normal Variables. - by Calgon - 11.08.2010, 19:54
Re: Player Variables vs Normal Variables. - by Carlton - 11.08.2010, 21:23
Re: Player Variables vs Normal Variables. - by xxxDunecatxxx - 26.09.2010, 05:44
Re: Player Variables vs Normal Variables. - by cyber_punk - 26.09.2010, 15:35
Re: Player Variables vs Normal Variables. - by Calgon - 26.09.2010, 15:38
Re: Player Variables vs Normal Variables. - by Slice - 26.09.2010, 16:24
Re: Player Variables vs Normal Variables. - by Kwarde - 08.10.2010, 05:07
Re: Player Variables vs Normal Variables. - by Slice - 08.10.2010, 16:45
Re: Player Variables vs Normal Variables. - by chris_reef - 12.04.2011, 17:06
Re: Player Variables vs Normal Variables. - by [03]Garsino - 12.04.2011, 18:27
Re: Player Variables vs Normal Variables. - by Gamer_Z - 12.04.2011, 18:45
Re: Player Variables vs Normal Variables. - by chris_reef - 12.04.2011, 23:38
Re: Player Variables vs Normal Variables. - by [03]Garsino - 13.04.2011, 05:18
Re: Player Variables vs Normal Variables. - by Kalcor - 16.07.2011, 07:39
Re: Player Variables vs Normal Variables. - by BobbMarley - 09.09.2016, 19:15
Re: Player Variables vs Normal Variables. - by Shinja - 09.09.2016, 19:19

Forum Jump:


Users browsing this thread: 1 Guest(s)