19.09.2009, 20:34
Not sure if it helps, but this is how I would do it:
You can count strlen yourself. For "Cost: " it's 6. So you don't need to format. And I put the "{" bracket after the if statement.
pawn Код:
if(strfind(data,"Cost: ",true)!=-1){strmid(sdata,data,6,strlen(data)-1,128);HousePic[houseid][Cost]=strval(sdata);}