CallLocalFunction
#1

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)