Datasets:
Tasks:
Text Generation
Modalities:
Text
Formats:
text
Languages:
Russian
Size:
10K - 100K
Tags:
code
License:
#include <amxmodx> | |
#include <amxmisc> | |
#include <cellarray> | |
#define PLUGIN "New Plugin" | |
#define AUTHOR "Unknown" | |
#define VERSION "1.0" | |
public plugin_init() | |
{ | |
register_plugin(PLUGIN, VERSION, AUTHOR) | |
} | |
public findSteamID(steamID[34],Array:steamIDs) | |
{ | |
new size = ArraySize(steamIDs); | |
new steamIDSearch[34]; | |
for(new i=0;i<size;i++) | |
{ | |
ArrayGetString(steamIDs,i,steamIDSearch,33) | |
if(!strcmp(steamID,steamIDSearch)) | |
return true; | |
} | |
return false; | |
} | |
public plugin_cfg() | |
{ | |
new file = fopen("list","r") | |
new steamID[34] | |
new Array:steamIDs = ArrayCreate(34); | |
while(fgets(file,steamID,33)) | |
{ | |
steamID[strlen(steamID)-2] = 0; | |
ArrayPushString(steamIDs,steamID); | |
} | |
new steamIDFind[34] = "STEAM_0:1:1234567"; | |
for(new i=0;i<10000;i++) | |
{ | |
findSteamID(steamIDFind,steamIDs); | |
} | |
server_cmd("quit"); | |
} |