24.03.2012, 13:57
What's happening is:
Here's a function:
What that function does is a simplified version of what your AddRadioStation command is doing.
String3 can accept any string up to 10 characters long.
If we RUN that function, but set 'string2' to a larger size than what 'string3' can handle, we will recieve an error.
The destination array can't accept more data than it's specified to store.
What you need to do is open up your include and change the size of the destination variable.
OR open the include, retrieve the AddRadioStation function and post it here. I'll edit it for you
Here's a function:
pawn Код:
myfunc(string[], string2[])
{
new string3[10];
strcat(string3, string2, sizeof(string3));
}
String3 can accept any string up to 10 characters long.
If we RUN that function, but set 'string2' to a larger size than what 'string3' can handle, we will recieve an error.
pawn Код:
myfunc(bob, aaaaaaaaaaaa); //12 'a's = string2[12]
What you need to do is open up your include and change the size of the destination variable.
OR open the include, retrieve the AddRadioStation function and post it here. I'll edit it for you

