Saving a string into a variable.
#1

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.

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]);
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.
Reply


Messages In This Thread
Saving a string into a variable. - by printer - 29.05.2014, 09:34
Re: Saving a string into a variable. - by ]Rafaellos[ - 29.05.2014, 09:57
Re: Saving a string into a variable. - by printer - 29.05.2014, 10:51
Re: Saving a string into a variable. - by printer - 30.05.2014, 12:16
Re: Saving a string into a variable. - by Koala818 - 30.05.2014, 14:50

Forum Jump:


Users browsing this thread: 2 Guest(s)