Why does this not work? Simple Text
#4

Quote:
Originally Posted by Konstantinos
Посмотреть сообщение
Don't use assignment (=) for copying a string to another. Use strcat instead.

pawn Код:
strcat((ObjectInfo[i][oName][0] = '\0', ObjectInfo[i][oName]), example, SIZE_HERE);
Change the 'SIZE_HERE' with the size the index oName have in the enum.
For example, if it's:
pawn Код:
oName[32],
then change 'SIZE_HERE' to 32.
I'm just trying to simply write a name for each object

ObjectName = name;

And save that to the file and else where in my script like

/editfurni will show a dialog and show Object ID %d Name %s object, ObjectName

Are you telling me to specify a simple peace of text I have to do that for every single one? Where as if I wanted to just specify ObjectNumber = 1; it works just fine.. ?
Reply


Messages In This Thread
Why does this not work? Simple Text - by Phil_Cutcliffe - 20.02.2014, 18:58
Re: Why does this not work? Simple Text - by Konstantinos - 20.02.2014, 19:02
Re: Why does this not work? Simple Text - by MattTucker - 20.02.2014, 19:15
Re: Why does this not work? Simple Text - by Phil_Cutcliffe - 20.02.2014, 19:22
Re: Why does this not work? Simple Text - by Konstantinos - 20.02.2014, 19:27
Re: Why does this not work? Simple Text - by Vince - 20.02.2014, 19:36
Re: Why does this not work? Simple Text - by Phil_Cutcliffe - 20.02.2014, 20:02
Re: Why does this not work? Simple Text - by Phil_Cutcliffe - 21.02.2014, 16:07

Forum Jump:


Users browsing this thread: 2 Guest(s)