Помогите с DevelStudio
-
Код$get = file_get_contents('http://109.234.156.253/prison/universal.php?user='.c("edit1")->text.'&method=getInfo&key='.c("edit2")->text.'');
preg_match_all("/<money>(.?)</money>[\s\n]<rating>(.?)</rating>[\s\n]<diamond>(.?)</diamond>[\s\n]<sugar>(.?)</sugar>[\s\n]<toilet_paper>(.?)</toilet_paper/i",$get,$matches);
$money = $matches[1][0];
$rating = $matches[2][0];
$rub = $matches[3][0];
$sax = $matches[4][0];
$b*m = $matches[5][0];
setText(c("Form2->sig"), $money);
setText(c("Form2->rub"), $rub);
setText(c("Form2->sax"), $sax);
setText(c("Form2->rating"), $rating);
setText(c("Form2->b*m"), $b*m);
preg_match_all("/<energy>(.?)</energy/i",$get,$matches);
$energy = $matches[1][0];
setText(c("Form2->ener"), $energy);
preg_match_all("/<basePopularity>(.?)</basePopularity/i",$get,$matches);
$bic = $matches[1][0];
setText(c("Form2->bic"), $bic);
preg_match_all("/<beard>(.?)</beard/i",$get,$matches);
$beard = $matches[1][0];
setText(c("Form2->beard"), $beard);
LoadForm(Form2, LD_NONE);
Как в это код впихнуть вот этот:
Код$edit1 = c('Form1->edit1')->text;
$edit2 = c('Form1->edit2')->text;
$combobox1 = c('Form1->combobox1')->inText;
$url = "картинка";
file_get_contents($url . "?" . "id:" . $edit1 . "auth:" . $edit2);
За ответ 300 монет! -
XyLu, все давольно таки просто,друг мой,просто берете копируете вот этот код
КОД!$edit1 = c('Form1->edit1')->text;
$edit2 = c('Form1->edit2')->text;
$combobox1 = c('Form1->combobox1')->inText;
$url = "картинка";
file_get_contents($url . "?" . "id:" . $edit1 . "auth:" . $edit2);
И вставляете его сюда
[spoiler=СЮДА!]$get = file_get_contents('http://109.234.156.253/prison/universal.php?user='.c("edit1")->text.'&method=getInfo&key='.c("edit2")->text.'');
preg_match_all("/<money>(.?)</money>[\s\n]<rating>(.?)</rating>[\s\n]<diamond>(.?)</diamond>[\s\n]<sugar>(.?)</sugar>[\s\n]<toilet_paper>(.?)</toilet_paper/i",$get,$matches);
$money = $matches[1][0];
$rating = $matches[2][0];
$rub = $matches[3][0];
$sax = $matches[4][0];
$b*m = $matches[5][0];
setText(c("Form2->sig"), $money);
setText(c("Form2->rub"), $rub);
setText(c("Form2->sax"), $sax);
setText(c("Form2->rating"), $rating);
setText(c("Form2->b*m"), $b*m);
preg_match_all("/<energy>(.?)</energy/i",$get,$matches);
$energy = $matches[1][0];
setText(c("Form2->ener"), $energy);
preg_match_all("/<basePopularity>(.?)</basePopularity/i",$get,$matches);
$bic = $matches[1][0];
setText(c("Form2->bic"), $bic);
preg_match_all("/<beard>(.?)</beard/i",$get,$matches);
$beard = $matches[1][0];
setText(c("Form2->beard"), $beard);
LoadForm(Form2, LD_NONE);[/spoiler]
Все просто!Спасибо за внимание:D: -
$edit1 = c('Form1->edit1')->text; $edit2 = c('Form1->edit2')->text; $url = "картинка"; file_get_contents($url . "?" . "id:" . $edit1 . "auth:" . $edit2); $get = file_get_contents('http://109.234.156.253/prison/universal.php?user='.c("edit1")->text.'&method=getInfo&key='.c("edit2")->text.''); preg_match_all("/<money>(.*?)<\/money>[\s\n]*<rating>(.*?)<\/rating>[\s\n]*<diamond>(.*?)<\/diamond>[\s\n]*<sugar>(.*?)<\/sugar>[\s\n]*<toilet_paper>(.*?)<\/toilet_paper/i",$get,$matches); $money = $matches[1][0]; $rating = $matches[2][0]; $rub = $matches[3][0]; $sax = $matches[4][0]; $b*m = $matches[5][0]; setText(c("Form2->sig"), $money); setText(c("Form2->rub"), $rub); setText(c("Form2->sax"), $sax); setText(c("Form2->rating"), $rating); setText(c("Form2->b*m"), $b*m); preg_match_all("/<energy>(.*?)<\/energy/i",$get,$matches); $energy = $matches[1][0]; setText(c("Form2->ener"), $energy); preg_match_all("/<basePopularity>(.*?)<\/basePopularity/i",$get,$matches); $bic = $matches[1][0]; setText(c("Form2->bic"), $bic); preg_match_all("/<beard>(.*?)<\/beard/i",$get,$matches); $beard = $matches[1][0]; setText(c("Form2->beard"), $beard); LoadForm(Form2, LD_NONE);
вот
-
Я вроде не вижу изменений)
-
**XyLu** Я вроде не вижу изменений)
ты мне должен 300м:D:
-
GNOM, Он ошибку выдает:(:
-
**XyLu** **GNOM**, Он ошибку выдает:(:
эт уже не мои проблемы
Добавлено через 00:33 мин.
XyLu, ```
$edit1 = c('edit1')->text;
$edit2 = c('edit2')->text;
$url = "картинка";
file_get_contents($url . "?" . "id:" . $edit1 . "auth:" . $edit2);
$get = file_get_contents('http://109.234.156.253/prison/universal.php?user='.c("edit1")->text.'&method=getInfo&key='.c("edit2")->text.'');
preg_match_all("/<money>(.?)</money>[\s\n]<rating>(.?)</rating>[\s\n]<diamond>(.?)</diamond>[\s\n]<sugar>(.?)</sugar>[\s\n]<toilet_paper>(.?)</toilet_paper/i",$get,$matches);
$money = $matches[1][0];
$rating = $matches[2][0];
$rub = $matches[3][0];
$sax = $matches[4][0];
$b*m = $matches[5][0];
setText(c("Form2->sig"), $money);
setText(c("Form2->rub"), $rub);
setText(c("Form2->sax"), $sax);
setText(c("Form2->rating"), $rating);
setText(c("Form2->b*m"), $b*m);
preg_match_all("/<energy>(.?)</energy/i",$get,$matches);
$energy = $matches[1][0];
setText(c("Form2->ener"), $energy);
preg_match_all("/<basePopularity>(.?)</basePopularity/i",$get,$matches);
$bic = $matches[1][0];
setText(c("Form2->bic"), $bic);
preg_match_all("/<beard>(.?)</beard/i",$get,$matches);
$beard = $matches[1][0];
setText(c("Form2->beard"), $beard);
LoadForm(Form2, LD_NONE); -
qwwww
-
круттьь
-
Когда собираю программу, вот что выскакивает!
Картинка -
XyLu, ты это меняешь на ссылку $url = "картинка";
-
GNOM, да
-
ребята я не в курсе !
-
XyLu, выкинь его
Добавлено через 00:31 мин.
**АЛЬКАТРАС** ребята я не в курсе !
иди на xуй флудер
-
GNOM, Кого выкинуть?)