24/02/2021, 07:57 PM
(Última modificación: 24/02/2021, 07:59 PM por Talquito. Edited 1 time in total.)
Hola me tira error en "client_print_color" como puedo solucionarlo?
Cita:Error: Argument type mismatch (argument 2) on line 192
Código PHP:
public login(id) {
if(g_logged[id]) {
menu_account(id)
set_hudmessage(255, 0, 0, 0.02, 0.17, 0, 6.0, 12.0)
show_hudmessage(id, "%L", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_A")
client_print_color(id, "!g%L !t%L", LANG_PLAYER, "REG_PREFIX", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_A")
}
else if(!g_registered[id]) {
menu_account(id)
set_hudmessage(255, 0, 0, 0.02, 0.17, 0, 6.0, 12.0)
show_hudmessage(id, "%L", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_B")
client_print_color(id, "!g%L !t%L", LANG_PLAYER, "REG_PREFIX", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_B")
}
else {
client_cmd(id,"messagemode ENTER_YOUR_PASSWORD")
set_hudmessage(0, 255, 0, 0.02, 0.17, 0, 6.0, 12.0)
show_hudmessage(id, "%L", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_C")
client_print_color(id, "!g%L !t%L", LANG_PLAYER, "REG_PREFIX", LANG_PLAYER, "MENU_ACCOUNT_CASE_00_C")
g_unlock[id] = false
}
return PLUGIN_HANDLED
}