- Регистрация
- 12 Авг 2019
- Сообщения
- 172
- Лучшие ответы
- 0
- Репутация
- 2
КОманда
Ошибка:
Спасибо
PHP:
CMD:aticket(playerid, params[])
{
if(GetPVarInt(playerid, "logged") == 0) return 1;
if ( p_info [ playerid ] [ admin ] < 5 ) return 1 ;
extract params -> new to_player, summ, string: reason[30]; else return SendClientMessage(playerid, COLOR_LIME, "Информация: {FFFFFF}/aticket [id игрока] [сумма] [причина]");
new fmt_msg[128];
new scm_string [ 128 ] ;
format(fmt_msg, sizeof fmt_msg, "Администратор %s выписал штраф %s [%d] на сумму %d руб. Причина: %s", p_info[playerid][ name ], p_info[to_player][ name ], to_player, summ, reason);
foreach(new i: admin_players) SendClientMessage ( i, COLOR_GREY, scm_string ) ;
new string[128];
format(string, sizeof(string), "Администратор %s выписал Вам штраф на сумму %d руб. Причина: %s",p_info[playerid][ name ], summ, reason);
SendClientMessage(to_player, COLOR_RED, string);
give_money(to_player, -summ, "Штраф"); //строка с ошибкой
return 1;
}
PHP:
43617) : warning 202: number of arguments does not match definition