SA-MP Forums Archive
CallLocalFunction - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: CallLocalFunction (/showthread.php?tid=373210)



CallLocalFunction - ikkentim - 29.08.2012

Hi,
I have this little piece of code:
pawn Код:
CallLocalFunction("TestLocal", "s", "");
public TestLocal(const text[])
{
    SendClientMessageToAll(COLOR_WHITE, "Text:");
    SendClientMessageToAll(COLOR_WHITE, text);
}
When the string (CallLocalFunction's 3 param) is empty, the server crashes. When there is anything in, it doesn't ... Does anyone know a good workaround/Way to solve it?

Thanks

Edit: Solved it: https://sampforum.blast.hk/showthread.php?tid=180777