Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- stock PlayerName(playerid)
- {
- new Pname[24];
- GetPlayerName(playerid, Pname, 24);
- return Pname;
- }
- main(){}
- public OnPlayerConnect(playerid)
- {
- new string[100];
- new t1 = GetTickCount();
- for(new x; x<1000000; x++)
- {
- new Pname[24];
- GetPlayerName(playerid, Pname, 24);
- format(string, sizeof(string), "Name: %s", Pname);
- }
- t1 = GetTickCount() - t1;
- new t2 = GetTickCount();
- for(new x; x<1000000; x++)
- {
- format(string, sizeof(string), "Name:%s", PlayerName(playerid));
- }
- t2 = GetTickCount() - t2;
- printf("Stock %d, Normal: %d", t2, t1);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement