Vidzhey
Умник
Здравствуйте пользователи P-I. У меня возникла проблема при написании мануала хелперов, а именно проблема с командой /vopros, суть проблемы в том что хелперы не видят вопросы от игроков, а у игроков пишет что вопрос отправлен. Помогите пожалуйста буду очень благодарен.
Вот команда:
Мануал брал вот от сюда http://pawno-info.ru/threads/149066-Система-Helpers-RLS?highlight=/vopros
Вот команда:
PHP:
if(strcmp(cmd, "/vopros", true) == 0 || strcmp(cmd, "/вопрос", true) == 0)
{
if(IsPlayerConnected(playerid))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result))
if(HelperDuty[playerid] == 1)
{
format(string, sizeof(string), "Вопрос от %s[%d]: %s", sendername, playerid, (result));
SendHelperMessage(0x10F441AA, string);
}
SendClientMessage(playerid, COLOR_YELLOW, "Ваш вопрос отправлен Хелперам!");
format(string, sizeof(string), "Вопрос от %s[%d]: %s", sendername, playerid, (result));
SendClientMessage(playerid, COLOR_LIGHTRED, string);
}
}
