buiducduy111
Dragon Quest
- 3/5/11
- 1,257
- 7
//Done================================
Chỉnh sửa cuối:
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Không xài metahook làm gì cho mệt. Thế thôi.P/s: các bác fix dùm em cái mày với. Nó ko chạy :)
^
- Làm ơn nói triệu chứng ra dùm con. Không nói thì ai biết mà sửa. cho dù code có ngắn gọn nhưng ko nói triệu chứng thì chả ai sửa dc đâu
public event_DeathMsg()
{
new killer, victimid
killer = read_data(1)
victimid = read_data(2)
number_kill[killer]++
victim[killer][number_kill[killer]] = victimid
if (MH_IsMetaHookPlayer(victimid) || !is_user_bot(victimid))
{
//
client_print(attacker, print_chat, "Func da chay !!!") // Nhet cai client_print vao day. Va chac chan rang` no' qua dc dieu` kien de chay
// Vao game ma ko thay no chay dong` "Func da chay" la tu hieu nha
if (task_exists(victimid+task_show_death_msg)) remove_task(victimid+task_show_death_msg)
set_task(1.0, "function_show_death_msg", victimid+task_show_death_msg)
}
}
@BuiDucDuy:
- Thêm debug vào sau tên plugin. rồi vào game xem nó báo lỗi gì ở line nào rồi ra mà fix
- cái sound tít đó ko lấy dc. Tự set đi
public bdd_get_weapon(id)
{
new weapons[32], number, spr_name[128], stt
get_user_weapons(id, weapons, number)
for (new i=0; i<= number; i++)
{
if (get_weapon_type(weapons[i]) == 1) stt = i
}
format(spr_name,127,"bdd_wpn/weapon_%s", get_model_weapon(weapons[stt]))
return spr_name // luôn return về "bdd_wpn/weapon_"
}
public bdd_get_subweapon(id)
{
new weapons[32], number, spr_name[128], stt
get_user_weapons(id, weapons, number)
for (new i=0; i<= number; i++)
{
if (get_weapon_type(weapons[i]) == 2) stt = i
}
format(spr_name,127,"bdd_wpn/weapon_%s", get_model_weapon(weapons[stt]))
return spr_name // CHẠY BÌNH THƯỜNG!!!!!!!
}
cái *** đã bảo chỉ rõ chỗ sai để sửa cơ mà. ? Cứ đưa đoạn đoạn code biết cái gì mà sửa, nói rõ nó sai ở đâu. console nó có ghi rõ cái dòng bị sai, ko chịu đọc


//PAWN Native: SetString(slotid, string[]);
static cell AMX_NATIVE_CALL SetString( AMX* amx, cell* params )
{
int slotid = params[1];
char *inputstring;
amx_StrParam(amx, params[2], inputstring);
StoredString[slotid] = inputstring;
return 1;
}
//PAWN Native: GetString(slotid, returnstring[]);
static cell AMX_NATIVE_CALL GetString( AMX* amx, cell* params )
{
int slotid = params[1];
cell* return_str;
amx_GetAddr(amx, params[2], &return_str);
amx_SetString ( tdstr, StoredString[slotid], 0, 0, 128);
return 1;
}
ntn` chăng :
PHP://PAWN Native: SetString(slotid, string[]); static cell AMX_NATIVE_CALL SetString( AMX* amx, cell* params ) { int slotid = params[1]; char *inputstring; amx_StrParam(amx, params[2], inputstring); StoredString[slotid] = inputstring; return 1; } //PAWN Native: GetString(slotid, returnstring[]); static cell AMX_NATIVE_CALL GetString( AMX* amx, cell* params ) { int slotid = params[1]; cell* return_str; amx_GetAddr(amx, params[2], &return_str); amx_SetString ( tdstr, StoredString[slotid], 0, 0, 128); return 1; }
.