Why does this not work? Simple Text
#2

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.
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: 3 Guest(s)