Tipologie server:
*Resursă folosită:sursa/battlepass-t90289.html?hilit=battlepass
*ServerFiles utilizat:post649126.html#p649126
*Syserr:
Cod: Selectaţi tot
compiling System_Battlepass.cpp
System_Battlepass.cpp:1:6: error: 'CHARACTER' has not been declared
void CHARACTER::DoMission(int index, long long count)
^
System_Battlepass.cpp: In function 'void DoMission(int, long long int)':
System_Battlepass.cpp:3:6: error: 'missions_bp' was not declared in this scope
if (missions_bp.empty())
^
System_Battlepass.cpp:6:6: error: 'v_counts' was not declared in this scope
if (v_counts[index].status > 0)
^
System_Battlepass.cpp:9:2: error: 'time_t' was not declared in this scope
time_t -cenzurat-_Time = time(NULL);
^
System_Battlepass.cpp:10:12: error: variable 'DoMission(int, long long int)::tm vKey' has initializer but incomplete type
struct tm vKey = *localtime(&-cenzurat-_Time);
^
System_Battlepass.cpp:10:31: error: '-cenzurat-_Time' was not declared in this scope
struct tm vKey = *localtime(&-cenzurat-_Time);
^
System_Battlepass.cpp:10:39: error: 'localtime' was not declared in this scope
struct tm vKey = *localtime(&-cenzurat-_Time);
^
System_Battlepass.cpp:13:15: error: 'iMonthBattlePass' was not declared in this scope
if (month != iMonthBattlePass)
^
System_Battlepass.cpp:16:2: error: 'FILE' was not declared in this scope
FILE *fileID;
^
System_Battlepass.cpp:16:9: error: 'fileID' was not declared in this scope
FILE *fileID;
^
System_Battlepass.cpp:19:99: error: 'LocaleService_GetBasePath' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:19:117: error: 'GetName' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:19:118: error: 'snprintf' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:20:31: error: 'fopen' was not declared in this scope
fileID = fopen(file_name, "w");
^
System_Battlepass.cpp:22:6: error: 'NULL' was not declared in this scope
if (NULL == fileID)
^
System_Battlepass.cpp:25:2: error: 'v_counts' was not declared in this scope
v_counts[index].count = v_counts[index].count + count;
^
System_Battlepass.cpp:27:30: error: 'missions_bp' was not declared in this scope
if (v_counts[index].count > missions_bp[index].count)
^
System_Battlepass.cpp:30:6: error: 'missions_bp' was not declared in this scope
if (missions_bp[index].count == v_counts[index].count)
^
System_Battlepass.cpp:33:14: error: 'CHAT_TYPE_INFO' was not declared in this scope
ChatPacket(CHAT_TYPE_INFO, "Ai terminat o misiune din Battle-Pass, Felicitari!");
^
System_Battlepass.cpp:33:82: error: 'ChatPacket' was not declared in this scope
ChatPacket(CHAT_TYPE_INFO, "Ai terminat o misiune din Battle-Pass, Felicitari!");
^
System_Battlepass.cpp:34:16: error: 'rewards_bp' was not declared in this scope
AutoGiveItem(rewards_bp[index].vnum1,rewards_bp[index].count1);
^
System_Battlepass.cpp:34:64: error: 'AutoGiveItem' was not declared in this scope
AutoGiveItem(rewards_bp[index].vnum1,rewards_bp[index].count1);
^
System_Battlepass.cpp:41:74: error: 'fprintf' was not declared in this scope
fprintf(fileID,"MISSION %d %d\n", v_counts[i].count, v_counts[i].status);
^
System_Battlepass.cpp:44:15: error: 'fclose' was not declared in this scope
fclose(fileID);
^
System_Battlepass.cpp:46:27: error: 'SendInfosBattlePass' was not declared in this scope
SendInfosBattlePass(index);
^
System_Battlepass.cpp: At global scope:
System_Battlepass.cpp:49:6: error: 'CHARACTER' has not been declared
void CHARACTER::Load_BattlePass()
^
System_Battlepass.cpp: In function 'void Load_BattlePass()':
System_Battlepass.cpp:51:2: error: 'FILE' was not declared in this scope
FILE *fp;
^
System_Battlepass.cpp:51:9: error: 'fp' was not declared in this scope
FILE *fp;
^
System_Battlepass.cpp:58:2: error: 'Struct_BattlePass' was not declared in this scope
Struct_BattlePass save_counts = {0, 0};
^
System_Battlepass.cpp:60:99: error: 'LocaleService_GetBasePath' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:60:117: error: 'GetName' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:60:118: error: 'snprintf' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:61:27: error: 'fopen' was not declared in this scope
fp = fopen(file_name, "r");
^
System_Battlepass.cpp:63:6: error: 'NULL' was not declared in this scope
if (NULL == fp)
^
System_Battlepass.cpp:66:32: error: 'fgets' was not declared in this scope
while (fgets(one_line, 256, fp))
^
System_Battlepass.cpp:73:40: error: 'strtok' was not declared in this scope
token_string = strtok(one_line, delim);
^
System_Battlepass.cpp:74:7: error: 'NULL' was not declared in this scope
if (NULL == token_string)
^
System_Battlepass.cpp:77:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delim)))
^
System_Battlepass.cpp:78:27: error: 'str_to_number' was not declared in this scope
str_to_number(value1, v);
^
System_Battlepass.cpp:80:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delim)))
^
System_Battlepass.cpp:81:27: error: 'str_to_number' was not declared in this scope
str_to_number(value2, v);
^
System_Battlepass.cpp:83:18: error: 'TOKEN' was not declared in this scope
TOKEN("MISSION")
^
System_Battlepass.cpp:90:11: error: 'fclose' was not declared in this scope
fclose(fp);
^
System_Battlepass.cpp:92:13: error: 'CHAT_TYPE_COMMAND' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "status_battlepass %d", 1);
^
System_Battlepass.cpp:92:57: error: 'ChatPacket' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "status_battlepass %d", 1);
^
System_Battlepass.cpp: At global scope:
System_Battlepass.cpp:97:6: error: 'CHARACTER' has not been declared
void CHARACTER::ExternBattlePass()
^
System_Battlepass.cpp: In function 'void ExternBattlePass()':
System_Battlepass.cpp:99:2: error: 'FILE' was not declared in this scope
FILE *fp;
^
System_Battlepass.cpp:99:9: error: 'fp' was not declared in this scope
FILE *fp;
^
System_Battlepass.cpp:107:2: error: 'Infos_BattlePass' was not declared in this scope
Infos_BattlePass bp_infos = {0,0,0,0,0,0, NULL};
^
System_Battlepass.cpp:108:2: error: 'Infos_MissionsBP' was not declared in this scope
Infos_MissionsBP bp_missions = {0,0,0};
^
System_Battlepass.cpp:109:2: error: 'Infos_FinalBP' was not declared in this scope
Infos_FinalBP bp_final_reward = {0,0,0,0};
^
System_Battlepass.cpp:111:95: error: 'LocaleService_GetBasePath' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_config.txt", LocaleService_GetBasePath().c_str());
^
System_Battlepass.cpp:111:104: error: 'snprintf' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_config.txt", LocaleService_GetBasePath().c_str());
^
System_Battlepass.cpp:112:27: error: 'fopen' was not declared in this scope
fp = fopen(file_name, "r");
^
System_Battlepass.cpp:115:32: error: 'fgets' was not declared in this scope
while (fgets(one_line, 256, fp))
^
System_Battlepass.cpp:122:42: error: 'strtok' was not declared in this scope
token_string = strtok(one_line, delimit);
^
System_Battlepass.cpp:123:7: error: 'NULL' was not declared in this scope
if (NULL == token_string)
^
System_Battlepass.cpp:126:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:127:27: error: 'str_to_number' was not declared in this scope
str_to_number(value1, v);
^
System_Battlepass.cpp:129:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:130:27: error: 'str_to_number' was not declared in this scope
str_to_number(value2, v);
^
System_Battlepass.cpp:132:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:133:27: error: 'str_to_number' was not declared in this scope
str_to_number(value3, v);
^
System_Battlepass.cpp:135:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:136:27: error: 'str_to_number' was not declared in this scope
str_to_number(value4, v);
^
System_Battlepass.cpp:138:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:139:27: error: 'str_to_number' was not declared in this scope
str_to_number(value5, v);
^
System_Battlepass.cpp:141:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:142:27: error: 'str_to_number' was not declared in this scope
str_to_number(value6, v);
^
System_Battlepass.cpp:144:19: error: 'NULL' was not declared in this scope
if ((v = strtok(NULL, delimit)))
^
System_Battlepass.cpp:145:12: error: 'bp_infos' was not declared in this scope
strlcpy(bp_infos.name, v, sizeof(bp_infos.name) - 1);
^
System_Battlepass.cpp:145:55: error: 'strlcpy' was not declared in this scope
strlcpy(bp_infos.name, v, sizeof(bp_infos.name) - 1);
^
System_Battlepass.cpp:148:27: error: 'TOKEN' was not declared in this scope
TOKEN("REWARDS_AND_NAME")
^
System_Battlepass.cpp:158:3: error: 'else' without a previous 'if'
else TOKEN("DO_MISSION")
^
System_Battlepass.cpp:165:3: error: 'else' without a previous 'if'
else TOKEN("FINAL_REWARD")
^
System_Battlepass.cpp:175:3: error: 'else' without a previous 'if'
else TOKEN("MONTH_SEASON")
^
System_Battlepass.cpp:181:11: error: 'fclose' was not declared in this scope
fclose(fp);
^
System_Battlepass.cpp: At global scope:
System_Battlepass.cpp:184:6: error: 'CHARACTER' has not been declared
void CHARACTER::SendInfosBattlePass(int index)
^
System_Battlepass.cpp: In function 'void SendInfosBattlePass(int)':
System_Battlepass.cpp:186:6: error: 'v_counts' was not declared in this scope
if (v_counts.empty())
^
System_Battlepass.cpp:189:6: error: 'missions_bp' was not declared in this scope
if (missions_bp.empty())
^
System_Battlepass.cpp:192:13: error: 'CHAT_TYPE_COMMAND' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", index, v_counts[index].count, v_counts[index].status, rewards_bp[index].name);
^
System_Battlepass.cpp:192:71: error: 'v_counts' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", index, v_counts[index].count, v_counts[index].status, rewards_bp[index].name);
^
System_Battlepass.cpp:192:118: error: 'rewards_bp' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", index, v_counts[index].count, v_counts[index].status, rewards_bp[index].name);
^
System_Battlepass.cpp:192:140: error: 'ChatPacket' was not declared in this scope
ChatPacket(CHAT_TYPE_COMMAND, "info_missions_bp %d %d %d %s", index, v_counts[index].count, v_counts[index].status, rewards_bp[index].name);
^
System_Battlepass.cpp: At global scope:
System_Battlepass.cpp:195:6: error: 'CHARACTER' has not been declared
void CHARACTER::FinalRewardBattlePass()
^
System_Battlepass.cpp: In function 'void FinalRewardBattlePass()':
System_Battlepass.cpp:197:6: error: 'v_counts' was not declared in this scope
if (v_counts.empty())
^
System_Battlepass.cpp:200:6: error: 'missions_bp' was not declared in this scope
if (missions_bp.empty())
^
System_Battlepass.cpp:203:6: error: 'final_rewards' was not declared in this scope
if (final_rewards.empty())
^
System_Battlepass.cpp:206:6: error: 'v_counts' was not declared in this scope
if (v_counts[0].status == 2)
^
System_Battlepass.cpp:209:2: error: 'FILE' was not declared in this scope
FILE *fileID;
^
System_Battlepass.cpp:209:9: error: 'fileID' was not declared in this scope
FILE *fileID;
^
System_Battlepass.cpp:212:99: error: 'LocaleService_GetBasePath' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:212:117: error: 'GetName' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:212:118: error: 'snprintf' was not declared in this scope
snprintf(file_name, sizeof(file_name), "%s/battlepass_players/%s.txt", LocaleService_GetBasePath().c_str(),GetName());
^
System_Battlepass.cpp:213:31: error: 'fopen' was not declared in this scope
fileID = fopen(file_name, "w");
^
System_Battlepass.cpp:215:6: error: 'NULL' was not declared in this scope
if (NULL == fileID)
^
System_Battlepass.cpp:219:2: error: 'v_counts' was not declared in this scope
v_counts[0].status = v_counts[0].status + 1;
^
System_Battlepass.cpp:223:74: error: 'fprintf' was not declared in this scope
fprintf(fileID,"MISSION %d %d\n", v_counts[i].count, v_counts[i].status);
^
System_Battlepass.cpp:226:15: error: 'fclose' was not declared in this scope
fclose(fileID);
^
System_Battlepass.cpp:229:15: error: 'final_rewards' was not declared in this scope
AutoGiveItem(final_rewards[0].f_vnum1,final_rewards[0].f_count1);
^
System_Battlepass.cpp:229:65: error: 'AutoGiveItem' was not declared in this scope
AutoGiveItem(final_rewards[0].f_vnum1,final_rewards[0].f_count1);
^
gmake: *** [.obj/System_Battlepass.o] Error 1
gmake: *** Waiting for unfinished jobs....
*Detalii suplimentare:

