Da de ce vorbiti asa ma pisatilor nu mai aveti voi ce vinde. gainile dracu ce sunteti faceti omul in fel si chip ca va luat painea flamanzilor
Kod:
0903 14:41:13855 ::
uibattlepass.py(line:71) LoadWindow
ui.py(line:3719) LoadScriptFile
ui.py(line:3924) LoadChildren
ui.py(line:3883) LoadChildren
ui.py(line:2902) __init__
ui.py(line:2937) CreateScrollBar
ui.py(line:2889) SetSize
ui.py(line:899) GetBottom
battlepass.LoadWindow.LoadObject - <type 'exceptions.AttributeError'>:'module' object has no attribute 'GetBottom'
0903 14:41:13855 :: ============================================================================================================
0903 14:41:13855 :: Abort!!!!
Can anyone help me with this error please?
Hello, anybody can help?
Kod:
char.cpp:507:44: error: cannot initialize an array element of type 'char' with an rvalue of type 'nullptr_t'
Infos_BattlePass bp_infos = {0,0,0,0,0,0, NULL};
^~~~
/usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL'
#define NULL nullptr
^~~~~~~
Hello, anybody can help?
Kod:char.cpp:507:44: error: cannot initialize an array element of type 'char' with an rvalue of type 'nullptr_t' Infos_BattlePass bp_infos = {0,0,0,0,0,0, NULL}; ^~~~ /usr/include/sys/_null.h:37:14: note: expanded from macro 'NULL' #define NULL nullptr ^~~~~~~
change it
nullptr to NULL
change it
nullptr to NULL
@wabzy
I don't know what i must change, in /usr/include/sys/_null.h i have
Kod:
#ifndef NULL
#if !defined(__cplusplus)
#define NULL ((void *)0)
#else
#if __cplusplus >= 201103L
#define NULL nullptr
#elif defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4
#define NULL __null
#else
#if defined(__LP64__)
#define NULL (0L)
#else
#define NULL 0
#endif /* __LP64__ */
#endif /* __GNUG__ */
#endif /* !__cplusplus */
#endif
and in char.cpp
Kod:
void CHARACTER::ExternBattlePass()
{
FILE *fp;
char one_line[256];
int value1, value2, value3, value4, value5, value6;
const char *delimit = " \t\r\n";
char *v, *token_string;
char value7[4096];
char file_name[256+1];
Infos_BattlePass bp_infos = {0,0,0,0,0,0, NULL};
Infos_MissionsBP bp_missions = {0,0,0};
Infos_FinalBP bp_final_reward = {0,0,0,0};
snprintf(file_name, sizeof(file_name), "%s/battlepass_config.txt", LocaleService_GetBasePath().c_str());
fp = fopen(file_name, "r");
while (fgets(one_line, 256, fp))
{
value1 = value2 = value3 = value4 = value5 = value6 = 0;
if (one_line[0] == '#')
continue;
token_string = strtok(one_line, delimit);
if (NULL == token_string)
continue;
if ((v = strtok(NULL, delimit)))
str_to_number(value1, v);
if ((v = strtok(NULL, delimit)))
str_to_number(value2, v);
if ((v = strtok(NULL, delimit)))
str_to_number(value3, v);
if ((v = strtok(NULL, delimit)))
str_to_number(value4, v);
if ((v = strtok(NULL, delimit)))
str_to_number(value5, v);
if ((v = strtok(NULL, delimit)))
str_to_number(value6, v);
if ((v = strtok(NULL, delimit)))
strlcpy(bp_infos.name, v, sizeof(bp_infos.name) - 1);
TOKEN("REWARDS_AND_NAME")
{
bp_infos.vnum1 = value1;
bp_infos.count1 = value2;
bp_infos.vnum2 = value3;
bp_infos.count2 = value4;
bp_infos.vnum3 = value5;
bp_infos.count3 = value6;
rewards_bp.push_back(bp_infos);
}
else TOKEN("DO_MISSION")
{
bp_missions.type = value1;
bp_missions.vnum = value2;
bp_missions.count = value3;
missions_bp.push_back(bp_missions);
}
else TOKEN("FINAL_REWARD")
{
bp_final_reward.f_vnum1 = value1;
bp_final_reward.f_count1 = value2;
bp_final_reward.f_vnum2 = value3;
bp_final_reward.f_count2 = value4;
bp_final_reward.f_vnum3 = value5;
bp_final_reward.f_count3 = value6;
final_rewards.push_back(bp_final_reward);
}
else TOKEN("MONTH_SEASON")
{
iMonthBattlePass = value1;
}
}
fclose(fp);
}
Son düzenleme:
Şu an konuyu görüntüleyenler (Toplam : 0, Üye: 0, Misafir: 0)
Benzer konular
- Cevaplar
- 12
- Görüntüleme
- 1K
- Cevaplar
- 8
- Görüntüleme
- 435
- Cevaplar
- 0
- Görüntüleme
- 87
- Cevaplar
- 2
- Görüntüleme
- 410
- Cevaplar
- 12
- Görüntüleme
- 2K
