29.05.2014, 09:34
I have a problem with a furniture system that I program, when it shows the list I make it show the name of the object, and it doesn't after re-starting the server. So I've made a debug and found a problem.
It shows everything except ObjectInfo[oid][oName] and shows some weird "smiley" thing instead, like there's a problem with that's the in string variable. ObjectInfo[oid][oName] has 48 cells. And it's supposed to show "Plain Table[$120]". Need help.
pawn Код:
sscanf(SQL_Get("name","objects",oid),"p<|>s",ObjectInfo[oid][oName]);
print(ObjectInfo[oid][oName]);
printf("LOADOBJ STOCK DEBUG: %i %i %f %f %f %f %f %f %s",ObjectInfo[oid][oID],ObjectInfo[oid][oModel],ObjectInfo[oid][oXP],ObjectInfo[oid][oYP],ObjectInfo[oid][oZP],ObjectInfo[oid][rXP],ObjectInfo[oid][rYP],ObjectInfo[oid][rZP],ObjectInfo[oid][oName]);