- Регистрация
- 13 Апр 2018
- Сообщения
- 202
- Лучшие ответы
- 0
- Репутация
- 0
PHP:
gamemodes\new.pwn(1514) : error 035: argument type mismatch (argument 2)
PHP:
forward OnPlayerCheckBan(playerid);
public OnPlayerCheckBan(playerid)
{
new rows, string[191], Name, Admin[24], Reason[32], UnBaneDate[20];
cache_get_row_count(rows);
if(rows)
{
cache_get_value_index_int(0, "Name", Name); // 1514
cache_get_value_name(0, "Admin", Admin, 24);
cache_get_value_name(0, "Reason", Reason, 32);
cache_get_value_name(0, "UnBaneDate", UnBaneDate, 20);
format(string, sizeof(string),
"Аккаунт %s заблокирован \n\
Ник администратора: %s\n\
Причина блокировки: %s\n\
Дата разблокировки: %s",
Name, Admin, Reason, UnBaneDate);
ShowPlayerDialog(playerid, -1, DIALOG_STYLE_MSGBOX, !"Ваш аккаунт заблокирован", string , !"Выход", !"");
Kick(playerid);
}
else GoPlayerLogin(playerid);
return 1;
}