[Ajuda] Dini pra DOF2 = Deu merda =(
#5

Muitos anos atrбs eu tive o mesmo problema.

Tente atualizar na include com o cуdigo abaixo e veja se funciona, nгo testei.
Код:
private DOF2::ParseLine (line [], key [], value [], keysize = sizeof (key), valuesize = sizeof (value))
{
	new
		pos,
		readpos;

	if ((pos = charfind (line, '=')) != -1)
	{
	    // Read key and value.
	    readpos = pos - 1;
		while (readpos >= 0 && line [readpos] == '=')
		    --readpos;

		if (readpos >= 0 && keysize > (readpos + 1))
		{
			key [readpos + 1] = '\0';
			while (readpos >= 0)
			{
				key [readpos] = line [readpos];
				--readpos;
			}
		}
		else
		    return 0;

		readpos = pos + 1;
		++pos;
		while (line [readpos] == '=')
		{
			++pos;
		    ++readpos;
		}

        if (line [readpos])
		{
		    while (readpos >= 0 && line [readpos] && valuesize > (readpos - pos + 1))
			{
				value [readpos - pos] = line [readpos];
				++readpos;
			}
			value [readpos - pos] = '\0';
		}
		else
		{
		    key [0] = value [0] = '\0';
		    return 0;
		}
		
		if (!strcmp (value, "(null)", true))
		    value [0] = '\0';
		return 1;
	}
	key [0] = value [0] = '\0';
	return 0;
}
Reply


Messages In This Thread
Dini pra DOF2 = Deu merda =( - by zCyan - 08.07.2017, 21:33
Re: Dini pra DOF2 = Deu merda =( - by DarkBr - 09.07.2017, 00:31
Re: Dini pra DOF2 = Deu merda =( - by zCyan - 09.07.2017, 14:43
Re: Dini pra DOF2 = Deu merda =( - by ViniBorn - 09.07.2017, 15:46
Re: Dini pra DOF2 = Deu merda =( - by connork - 09.07.2017, 15:52

Forum Jump:


Users browsing this thread: 2 Guest(s)