06.07.2014, 12:29
Hello there,
As the title says, i cant get the 'getproperty' function to return the string that i want..or at least not where i want it.
just printing it with print returns fine;
But then i thought..okay ..lets return it in a dialog and first put it in format with other values;
what am im doing wrong there ? the FISH part returns smilies and zero's now.
As the title says, i cant get the 'getproperty' function to return the string that i want..or at least not where i want it.
just printing it with print returns fine;
pawn Код:
setproperty(0, "",48, "FishingRod");
new value[15];
getproperty(0, "",Item[slot][Containid], value);
print(value);
//returns FishingRod *jeeej*
pawn Код:
new FISH[15];
getproperty(0, "",Item[c][Containid], FISH);
new Cstring[120];
format(Cstring,sizeof(Cstring),"%s\n%d\n%s\n%d",FISH ,Item[c][ItemAmmount],Item[c][Containid2],Item[c][ItemAmmount2]);