format(str1, sizeof(str1), "\nInterior: %d", GetPlayerInterior(playerid)); strcat(str, str1);
format(str1, sizeof(str1), "\nAdmin Level: %d", "what should I use here?); strcat(str, str1);
format(str1, sizeof(str1), "\nAccount ID: %d", "what should I use here?); strcat(str, str1);
format(str1, sizeof(str1), "\nVip Level: %d", "what should I use here?); strcat(str, str1);
format(str1, sizeof(str1), "\nLogged In: %d", "what should I use here?); strcat(str, str1);
That's depending on your script. Most use something like: pInfo[playerid][pAdmin]
Search to your script. If you do not find anything related to that, then you may use something else. |
format(str1, sizeof(str1), "\nAdmin Level: %d", pInfo[playerid][pLevel]);
strcat(str, str1);
format(str1, sizeof(str1), "\nVip Level: %d", pInfo[playerid][Donator]);
strcat(str, str1);
format(str1, sizeof(str1), "\nLogged In: %d", pInfo[playerid][Logged]);
strcat(str, str1);
pawn Код:
pawn Код:
pawn Код:
|
-------------------------- SA-MP Server: 0.3x-R2 Exception At Address: 0x004063EE Module: (samp-server.exe) Registers: EAX: 0x00000019 EBX: 0x02C43104 ECX: 0x00000000 EDX: 0x00000000 ESI: 0x03D9EB2C EDI: 0x0177A288 EBP: 0x02C99810 ESP: 0x0012F370 EFLAGS: 0x00010246 Stack: +0000: 0x00000000 0x0012F3A8 0x03D4F96C 0x0012F3B8 +0010: 0x0177A288 0x010E40FC 0x0012F3A4 0x0177A288 +0020: 0x0109572C 0x0012F3AC 0x0177A288 0x0177A288 +0030: 0x02C43104 0x00000000 0x00000000 0x03D4F96C +0040: 0x004010B6 0x0177A288 0x00000023 0x02CBA240 +0050: 0x00402B63 0x0177A288 0x0000000C 0x0012F3E4 +0060: 0x03D9EB2C 0x0012F874 0x00000001 0x03D9EC2C +0070: 0x0177A288 0x00000001 0x010E48E8 0x010E48EC +0080: 0x010E49E0 0x010E0ADC 0x010E49CC 0x010E0ADC +0090: 0x02C43104 0x02CBA240 0x00000000 0x02C40020 +00A0: 0x0007713C 0x004721FE 0x0177A288 0x0012F864 +00B0: 0x0000012A 0x00470030 0x00007369 0x5F646D63 +00C0: 0x74617473 0x00470073 0x0177A288 0x02CBA240 +00D0: 0x010E0ACC 0x010E0AD4 0x00000000 0x00000000 +00E0: 0x00000000 0x00000000 0x00000000 0x00000000 +00F0: 0x00000000 0x00000000 0x00000000 0x00000000 +0100: 0x00000000 0x00000000 0x00000000 0x00000000 +0110: 0x00000000 0x017444E8 0x002C0000 0x01744568 +0120: 0x00000002 0x6D02A8C0 0x0000FE05 0x00000000 +0130: 0x00000008 0x0012F590 0x0000000A 0x01723B68 -------------------------- Loaded Modules: samp-server.exe A: 0x00400000 - 0x004F5000 (C:\Users\Kevs\Downloads\Compressed\SA-MP Files Servers\samp03x_svr_R2_win32\samp-server.exe) ntdll.dll A: 0x76E90000 - 0x76FCC000 (C:\Windows\SYSTEM32\ntdll.dll) kernel32.dll A: 0x765B0000 - 0x76684000 (C:\Windows\system32\kernel32.dll) KERNELBASE.dll A: 0x750A0000 - 0x750EB000 (C:\Windows\system32\KERNELBASE.dll) SHELL32.dll A: 0x757B0000 - 0x763F9000 (C:\Windows\system32\SHELL32.dll) msvcrt.dll A: 0x76400000 - 0x764AC000 (C:\Windows\system32\msvcrt.dll) SHLWAPI.dll A: 0x76E30000 - 0x76E87000 (C:\Windows\system32\SHLWAPI.dll) GDI32.dll A: 0x769A0000 - 0x769EE000 (C:\Windows\system32\GDI32.dll) USER32.dll A: 0x753C0000 - 0x75489000 (C:\Windows\system32\USER32.dll) LPK.dll A: 0x765A0000 - 0x765AA000 (C:\Windows\system32\LPK.dll) USP10.dll A: 0x75320000 - 0x753BE000 (C:\Windows\system32\USP10.dll) WSOCK32.dll A: 0x70970000 - 0x70977000 (C:\Windows\system32\WSOCK32.dll) WS2_32.dll A: 0x76FD0000 - 0x77005000 (C:\Windows\system32\WS2_32.dll) RPCRT4.dll A: 0x77010000 - 0x770B1000 (C:\Windows\system32\RPCRT4.dll) NSI.dll A: 0x76990000 - 0x76996000 (C:\Windows\system32\NSI.dll) WINMM.dll A: 0x70DF0000 - 0x70E22000 (C:\Windows\system32\WINMM.dll) IMM32.DLL A: 0x75570000 - 0x7558F000 (C:\Windows\system32\IMM32.DLL) MSCTF.dll A: 0x754A0000 - 0x7556C000 (C:\Windows\system32\MSCTF.dll) sscanf.DLL A: 0x10000000 - 0x1000D000 (C:\Users\Kevs\Downloads\Compressed\SA-MP Files Servers\samp03x_svr_R2_win32\plugins\sscanf.DLL) MSVCR100.dll A: 0x71500000 - 0x715BF000 (C:\Windows\system32\MSVCR100.dll) streamer.DLL A: 0x66A70000 - 0x66AA9000 (C:\Users\Kevs\Downloads\Compressed\SA-MP Files Servers\samp03x_svr_R2_win32\plugins\streamer.DLL) MSVCP90.dll A: 0x709D0000 - 0x70A5E000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCP90.dll) MSVCR90.dll A: 0x70A60000 - 0x70B03000 (C:\Windows\WinSxS\x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a\MSVCR90.dll) whirlpool.DLL A: 0x00300000 - 0x0030C000 (C:\Users\Kevs\Downloads\Compressed\SA-MP Files Servers\samp03x_svr_R2_win32\plugins\whirlpool.DLL) MSVCR80.dll A: 0x70B10000 - 0x70BAB000 (C:\Windows\WinSxS\x86_microsoft.vc80.crt_1fc8b3b9a1e18e3b_8.0.50727.6195_none_d09154e044272b9a\MSVCR80.dll) avsda.dll A: 0x74570000 - 0x745B3000 (C:\Program Files\Avira\AntiVir Desktop\avsda.dll) IPHLPAPI.DLL A: 0x74550000 - 0x7456C000 (C:\Windows\system32\IPHLPAPI.DLL) WINNSI.DLL A: 0x74540000 - 0x74547000 (C:\Windows\system32\WINNSI.DLL) ADVAPI32.dll A: 0x764B0000 - 0x76550000 (C:\Windows\system32\ADVAPI32.dll) sechost.dll A: 0x768D0000 - 0x768E9000 (C:\Windows\SYSTEM32\sechost.dll) mswsock.dll A: 0x74A90000 - 0x74ACC000 (C:\Windows\system32\mswsock.dll) wshtcpip.dll A: 0x74520000 - 0x74525000 (C:\Windows\System32\wshtcpip.dll) NLAapi.dll A: 0x73500000 - 0x73510000 (C:\Windows\system32\NLAapi.dll) DNSAPI.dll A: 0x74950000 - 0x74994000 (C:\Windows\system32\DNSAPI.dll) winrnr.dll A: 0x70360000 - 0x70368000 (C:\Windows\System32\winrnr.dll) napinsp.dll A: 0x6A7B0000 - 0x6A7C0000 (C:\Windows\system32\napinsp.dll) pnrpnsp.dll A: 0x6A790000 - 0x6A7A2000 (C:\Windows\system32\pnrpnsp.dll) mdnsNSP.dll A: 0x715C0000 - 0x715E1000 (C:\Program Files\Bonjour\mdnsNSP.dll) rasadhlp.dll A: 0x714E0000 - 0x714E6000 (C:\Windows\system32\rasadhlp.dll)
CMD:stats(playerid,params[]) { SendClientMessage(playerid, whitestamp, "{FFFF00}Usage: /stats <Player ID/Part of Name>"); new id, h, m, d; new pName[24], pName2[24]; GetPlayerName(playerid, pName, sizeof(pName)), GetPlayerName(id, pName2, sizeof(pName)); sscanf(params, "u", id); if (isnull(params)) { new str[512]; new status[2][25] = {"{FF0000}Disabled", "{1AFF00}Enabled{A9C4E4}"}; new seconds = gettime() - pInfo[playerid][ConnectedTime] + pInfo[playerid][TotalSecs]; format(JLstring, sizeof(JLstring), "{ffd700}%s (ID:%d) {09F7DF}", pName, playerid); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\n\nGeneral: {FFFFFF} \nAdmin Level: %d", pInfo[playerid][pLevel]); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\nVIP Level: %d", pInfo[playerid][Donator]); strcat(str, JLstring); return ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "{09F7DF}Player Statistics", str, "Close", ""); } else if(IsPlayerConnected(id)) { format(JLstring, sizeof(JLstring), "{ffd700}%s (ID:%d) {09F7DF}", pName2, id); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\n\nGeneral: {FFFFFF} \nAdmin Level: %d", pInfo[id][pLevel]); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\nVIP Level: %d", pInfo[id][Donator]); strcat(str, JLstring); return ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{09F7DF}Player Statistics",Jstring,"Close",""); } else return ShowPlayerDialog(playerid, DIALOG_STATS2, DIALOG_STYLE_MSGBOX,"{09F7DF}Player Statistics", "Player is not connected", "Close", "");
format(str1, sizeof(str1), "\nAccount ID: %d", playerid);
strcat(str, str1); You mean this? Sorry for non code format i'm from phone |
CMD:stats(playerid,params[]) { SendClientMessage(playerid, whitestamp, "{FFFF00}Usage: /stats <Player ID/Part of Name>"); new id, h, m, d; new pName[24], pName2[24]; GetPlayerName(playerid, pName, sizeof(pName)), GetPlayerName(id, pName2, sizeof(pName)); sscanf(params, "u", id); if (isnull(params)) { new str[512]; new status[2][25] = {"{FF0000}Disabled", "{1AFF00}Enabled{A9C4E4}"}; new seconds = gettime() - pInfo[playerid][ConnectedTime] + pInfo[playerid][TotalSecs]; format(JLstring, sizeof(JLstring), "{ffd700}%s (ID:%d) {09F7DF}", pName, playerid); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\n\nGeneral: {FFFFFF} \nAdmin Level: %d", pInfo[playerid][pLevel]); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\nVIP Level: %d", pInfo[playerid][Donator]); strcat(str, JLstring); return ShowPlayerDialog(playerid, DIALOG_STATS, DIALOG_STYLE_MSGBOX, "{09F7DF}Player Statistics", str, "Close", ""); } else if(IsPlayerConnected(id)) { format(JLstring, sizeof(JLstring), "{ffd700}%s (ID:%d) {09F7DF}", pName2, id); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\n\nGeneral: {FFFFFF} \nAdmin Level: %d", pInfo[id][pLevel]); strcat(str, JLstring); format(JLstring, sizeof(JLstring), "\nVIP Level: %d", pInfo[id][Donator]); strcat(str, JLstring); return ShowPlayerDialog(playerid,DIALOG_STATS,DIALOG_STYLE_MSGBOX,"{09F7DF}Player Statistics",Jstring,"Close",""); } else return ShowPlayerDialog(playerid, DIALOG_STATS2, DIALOG_STYLE_MSGBOX,"{09F7DF}Player Statistics", "Player is not connected", "Close", "");