31.01.2012, 11:41
I've made a couple of topics about this before, but here's another one.
I have an enum array of strings, like so
enum enumlol
{
string[64]
}
new array[MAX_PLAYERS][MAX_DIALOGS][enumlol];
and I'm trying to copy the string from
array[0][1][0]
in to
array[0][0][0]
but it's not working properly. I haven't done much debugging, but from what I can tell it's just setting the string to ""
Are there any alternatives to strcpy?
EDIT:
It outputs a blank clientmessage...
I have an enum array of strings, like so
enum enumlol
{
string[64]
}
new array[MAX_PLAYERS][MAX_DIALOGS][enumlol];
and I'm trying to copy the string from
array[0][1][0]
in to
array[0][0][0]
but it's not working properly. I haven't done much debugging, but from what I can tell it's just setting the string to ""
Are there any alternatives to strcpy?
EDIT:
pawn Код:
enum testvars
{
teststring[64]
}
new test[testvars];
new hsdfghlsdgh[128];
strcpy(test[teststring], "Hello World!");
format(hsdfghlsdgh, 128, "%s", test[teststring]);
SendClientMessage(playerid, -1, hsdfghlsdgh);