Posts: 3,324
Threads: 96
Joined: Sep 2013
pawn Код:
global getSomeString(&test[]) {
test = "This is a test";
}
Use:
pawn Код:
new str[20];
getSomeString(str);
print(str);//Will print "This is a test"
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by detter
Clever ,but:
Код:
"variable cannot be both a reference and an array"
|
You're right, I forgot about that. Strings can't be references... I've never played with y_master too much so I don't know what to say...
Perhaps you should report this on github.
Posts: 826
Threads: 64
Joined: Oct 2013
Reputation:
0
As Crayder said, Create an issue in the github with a Question tag and ****** himself will help you.
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by Ahmad45123
As Crayder said, Create an issue in the github with a Question tag and ****** himself will help you.
|
No... It's not a question. This is a real issue. Strings seem to not be able to be returned in y_master functions. There's also no need to tag ******, he checks the YSI github regularly.
Posts: 161
Threads: 15
Joined: Dec 2010
Reputation:
0
Thank you for your suggestion.