Strange Error? [REP+]
#4

What's happening is:

Here's a function:

pawn Код:
myfunc(string[], string2[])
{
    new string3[10];
    strcat(string3, string2, sizeof(string3));
}
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.
pawn Код:
myfunc(bob, aaaaaaaaaaaa); //12 'a's = string2[12]
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
Reply


Messages In This Thread
Strange Error? [REP+] - by seanny - 24.03.2012, 13:48
Re: Strange Error? [REP+] - by Twisted_Insane - 24.03.2012, 13:54
Re: Strange Error? [REP+] - by seanny - 24.03.2012, 13:55
Re: Strange Error? [REP+] - by Rob_Maate - 24.03.2012, 13:57
Re: Strange Error? [REP+] - by Twisted_Insane - 24.03.2012, 13:58
Re: Strange Error? [REP+] - by seanny - 24.03.2012, 14:02
Re: Strange Error? [REP+] - by Twisted_Insane - 24.03.2012, 14:06

Forum Jump:


Users browsing this thread: 1 Guest(s)