Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- new gOldMoney[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- new tick = GetTickCount();
- static iM;
- iM = GetPlayerMoney(0);
- for(new i; i < 1000000;i++)
- {
- CallLocalFunction("OnPlayerMoneyChange","ii",0,(iM-gOldMoney[0]));
- gOldMoney[0] = iM;
- }
- printf("Static and allocating the iM variable took %i ms",GetTickCount()-tick);
- tick = GetTickCount();
- for(new i; i < 1000000;i++)
- {
- CallLocalFunction("OnPlayerMoneyChange","ii",0,(GetPlayerMoney(0)-gOldMoney[0]));
- gOldMoney[0] = GetPlayerMoney(0);
- }
- printf("Static and not allocating the iM variable took %i ms",GetTickCount()-tick);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement