04.04.2009, 23:18
EDIT: i figured it out already!
this is a php question:
hers my problem, SAMP uses spaces in-between the varname and the vars so when im using php to explode the var, it only shows the first var.
heres the code:
and this explains more of the problem
i can only define to explode 1 OR 2 OR 3, how can i do them all except for 0?
thanks for any help!
this is a php question:
hers my problem, SAMP uses spaces in-between the varname and the vars so when im using php to explode the var, it only shows the first var.
heres the code:
Код:
$fp = fopen($config_file, "r");
while (!feof($fp))
{
$line = trim(fgets($fp));
$pieces = explode(" ", $line);
$option = trim($pieces[0]);
$value = trim($pieces[1]);
$config_values[$option] = $value;
}
fclose($fp);
Код:
hostname Cops And Robbes 0 1 2 3
thanks for any help!


