- Регистрация
- 21 Фев 2013
- Сообщения
- 137
- Лучшие ответы
- 0
- Репутация
- 41
Нужна помощь. Вопрос вот в чем:
Результаты принтов:
Результат удаления(strdel):
В чем проблема? Почему он удаляет только 1 символ?
PHP:
new string[MAX_PLAYER_NAME+2] = "[";
strcat(string, pInfo[playerid][pName]);
strcat(string, "]");
print(string);
print(hInfo[houseid][hResident]);
printf("%d pos", strfind(hInfo[houseid][hResident],string));
printf("%d len", strlen(string));
strdel(hInfo[houseid][hResident], strfind(hInfo[houseid][hResident],string), strlen(string));
PHP:
[Haywell_Hartwall]
[Haywell_Hartwal][Haywell_Hartwall][Haywell_Hartwalll]
17 pos
18 len
PHP:
[Haywell_Hartwal]Haywell_Hartwall][Haywell_Hartwalll]
Последнее редактирование модератором: