![]() |
|
[Pawn] How can I resolve this? - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] How can I resolve this? (/showthread.php?tid=2709) |
How can I resolve this? - JR_Junior - 2024-05-01 Hello, I'm trying to create a function with several parameters in string format, but I don't know how to do it, as it's returning the following error: Code: error 067: variable cannot be both a reference and an array (variable "string1")PHP Code: new string1[15],string2[15];
stock MyFunction(&string1[15],&string2[15])
{
//Some code
string1 ="Hello";
string2 ="Hello 2";
}
FIXED! Just removed the & RE: How can I resolve this? - JR_Junior - 2024-05-01 FIXED! Just removed the & Code: new string1[15],string2[15];
stock MyFunction(string1[15],string2[15])
{
//Some code
string1 ="Hello";
string2 ="Hello 2";
} |