30.04.2015, 04:11
Quote:
|
Can someone help me parse this correctly? I've been having a hard time without a string buffer overflow warning.
pawn Код:
|
"p<,\">is[32]iis[32]iixxi"
Also you may want to try enum specifiers, I never got in to it too deep but it may be useful here.
Код:
enum Parse_Detail
{
E_obj,
E_text[32],
E_dat1,
E_dat2,
E_text[32],
E_dat3,
E_dat4,
E_hex1,
E_hex2,
E_dat5,
}
main
{
new
var[Parse_Detail];
sscanf(string, "p<,\">e<is[32]iis[32]iixxi>", var); //If the quote is not escaped just remove the escape and remove the quotes afterwards...
}

