22.10.2016, 12:54
I see why. This include does not check if the params is null. CallLocalFunction crashes when a null string is passed.
Any command which does not have params will crash the callback. The fix is to add
Any command which does not have params will crash the callback. The fix is to add
Код:
if(params[0] == '\0') return OnPlayerCommandPerformed(playerid, cmd[4], params, CallLocalFunction(cmd, "is", playerid, '\1')); else return OnPlayerCommandPerformed(playerid, cmd[4], params, CallLocalFunction(cmd, "is", playerid, params));