SA-MP Forums Archive
[Off] Duvida - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Off] Duvida (/showthread.php?tid=539720)



Duvida - SatanMessenger - 29.09.2014

Eu to tentando fazer um salvamento por dof2 й nгo tava salvando quem tem o nick com "[" e "]" aн achei isso na include

Код:
stock DOF2::udb_encode (nickname [])
{
	new
		buf [256],
		result [256];

	static const symbols [][2][] =
	{
	    {"_", "_00"},
		{";", "_01"},
		{"!", "_02"},
		{"/", "_03"},
		{"\\", "_04"},
		{"[", "_05"},
		{"]", "_06"},
		{"?", "_07"},
		{".", "_08"},
		{"*", "_09"},
		{"<", "_10"},
		{">", "_11"},
		{"{", "_12"},
		{"}", "_13"},
		{" ", "_14"},
		{"\"", "_15"},
		{":", "_16"},
		{"|", "_17"},
		{"=", "_18"}
	};

	strcat (buf, nickname);
	for (new i = 0; i < sizeof (symbols); ++i)
	{
	    DOF2::strreplace (symbols [i][1], symbols [i][0], buf, result);
	    DOF2::strcpy (buf, result);
	}
	return result;
}
Se eu tirar pode dar merda?


Re: Duvida - SatanMessenger - 29.09.2014

.......


Re: Duvida - Cor3y - 29.09.2014

Tente. Se der merda, coloque novamente. Senгo, trabalho feito.


Re: Duvida - ipsLuan - 30.09.2014

Nгo irб da merda, a nгo ser que esteja usando esta funзгo no GameMode.


Re: Duvida - SatanMessenger - 30.09.2014

eu tirei й ainda nao ta salvando


Re: Duvida - DannielCooper - 30.09.2014

Compilou o GameMode novamente apуs retirar?


Re: Duvida - SatanMessenger - 30.09.2014

sim nao salva nome de quem tem [] Exp
[ExE]SatanMessager