about maj points
i have
majestic-points-per-level = 1
majestic-min-level = 310
majestic-points-max = 999
but i get just 28 points and plap exp bug :s
is this the code for the maj points of 2.24d?
the code is good? or bad? :S
majestic-points-per-level = 1
majestic-min-level = 310
majestic-points-max = 999
but i get just 28 points and plap exp bug :s
is this the code for the maj points of 2.24d?
Code: Select all
// Majestic Code by Diuuude
void CGame::ReadMajesticSettings()
{
FILE * pFile;
HANDLE hFile;
DWORD dwFileSize;
char * cp, * token, cReadMode;
char cFn[120];
char seps[] = "= \t\n";
class CStrTok * pStrTok;
cReadMode = 0;
strcpy (cFn,"..\\GameConfigs\\MajesticSettings.cfg");
hFile = CreateFile(cFn, GENERIC_READ, NULL, NULL, OPEN_EXISTING, NULL, NULL);
dwFileSize = GetFileSize(hFile, NULL);
if (hFile != INVALID_HANDLE_VALUE) CloseHandle(hFile);
pFile = fopen(cFn, "rt");
if (pFile == NULL) {
return;
}
else {
cp = new char[dwFileSize+2];
ZeroMemory(cp, dwFileSize+2);
fread(cp, dwFileSize, 1, pFile);
pStrTok = new class CStrTok(cp, seps);
token = pStrTok->pGet();
//token = strtok( cp, seps );
while( token != NULL ) {
if (cReadMode != 0) {
switch (cReadMode) {
case 1:
if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1))
{
m_iMajesticPointsPerLevel = atoi(token);
}
cReadMode = 0;
break;
case 2:
if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1))
{
m_iMajesticMinLevel = atoi(token);
}
cReadMode = 0;
break;
case 3:
if ((strlen(token) != 0) && (strlen(token) <= 10000) && (strlen(token) >= 1))
{
m_iMajesticPointsMax = atoi(token);
}
cReadMode = 0;
break;
}
}
else {
if (memcmp(token, "majestic-points-per-level" , 25) == 0) cReadMode = 1;
if (memcmp(token, "majestic-min-level" , 18) == 0) cReadMode = 2;
if (memcmp(token, "majestic-points-max" , 19) == 0) cReadMode = 3;
}
token = pStrTok->pGet();
//token = strtok( NULL, seps );
}
delete pStrTok;
delete cp;
}
if (pFile != NULL) fclose(pFile);
PutLogList("(*) Loaded Majestic Config");
return;
}
what fucking code for majestic points?
You somekind of an idiot?
You somekind of an idiot?
<img src='http://www.hot.ee/carvanho/taavi.png' border='0' alt='user posted image' /><br><br><img src='http://www.hot.ee/carvanho/Elvine.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/LieroX.png' border='0' alt='user posted image' /><br><img src='http://www.hot.ee/carvanho/Football.png' border='0' alt='user posted image' />
if u got my source u thats one its has it in it just take it out it work buts when u put in the world.cfg 1 mj point per lvl shti its woudl realy be 2 so yea
<img src='http://lifeplaysu420.com/unknow/nightsign.png' border='0' alt='user posted image' /><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<br>Wanna make money for surfing the net sing up at <br><a href='http://www.cashfiesta.com/php/join.php? ... yprivitera' target='_blank'>cash fiesta</a><br>its all free hey why ntot make money while fucking around on the computer<br><br><br>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~