Quote:
Originally Posted by MasterMind420
show how your setting Buffer...
|
PHP Code:
char Buffer[30][192];
public void OnMapStart() {
for (int i = 0; i <= (30 - 1); i++)
Buffer[i] = "";
char cfgpath[PLATFORM_MAX_PATH];
char line[192];
BuildPath(Path_SM, cfgpath, sizeof(cfgpath), "configs/test/test.cfg");
Handle hFile = OpenFile(cfgpath, "r");
if(hFile != INVALID_HANDLE)
{
int vline = 0;
while (!IsEndOfFile(hFile))
{
if (!ReadFileLine(hFile, line, sizeof(line)))
break;
TrimString(line);
Buffer[vline] = line;
vline++;
}
CloseHandle(hFile);
}
}
Quote:
Originally Posted by MasterMind420
also what name are u trying to get...a players name? if its a players name...just use format string and within the format get the players name....but we need to see more to help u solve this.
|
im trying to do a whitelist by entity names. i could put them right in the plugin, but there are at least 1000 of entity names. I had to do it with cfg.