Posts: 36
Threads: 2
Joined: Dec 2010
Reputation:
0
Hey.
Since I use the new Includes from 0.3e RC5 my server crashes, when I try to call a local function in my script with the function from above. Is somebody also experiencing this?
Posts: 937
Threads: 69
Joined: Dec 2009
Reputation:
0
I'm using CallLocalFunction in my script and it works fine. Never had crashes with it.
Show us your code (where you call the local function), that may help at some point.
Posts: 341
Threads: 20
Joined: May 2008
Reputation:
0
Maybe you should give CallLocalFunction a dialogid parameter too.
Posts: 63
Threads: 9
Joined: Feb 2011
Reputation:
0
tried the crashdetect plugin?
Posts: 36
Threads: 2
Joined: Dec 2010
Reputation:
0
I already check if there Is any content or not.
When there is a content, then everything works nice,
but when there is no content, then it crashes.
I know that I could make a if-check for inputtext, but it should work also so, shouldn't it?
» Edit: I will use '\1\0' for the param, when it's empty. But what does that '\1' character mean, what is it for?
Posts: 2,557
Threads: 77
Joined: Nov 2010
Reputation:
0
I think he might be right.
I've been scripting a command processor inside zcmd for specific commands since 0.3d and yes, I had the same results.
Posts: 2,350
Threads: 96
Joined: Jun 2007
Reputation:
0
You should also provide a server crash log from crashinfo.txt
Posts: 1,046
Threads: 29
Joined: Mar 2010
Check for if the string is null. If yes, so inputtext should be like "\1".
From my dialog response processor include:
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
new bdialstr[24];
format(bdialstr, 24, "dial_%d", dialogid);
if((!(inputtext[0])) || (((inputtext[0]) == '\1') && (!(inputtext[1])))) return (CallLocalFunction(bdialstr, "dlds", playerid, !!response, listitem, "\1") == 0 ? (DIAL_ODR ? CallLocalFunction("Dial_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, "\1") : 0) : 1);
return (CallLocalFunction(bdialstr, "dlds", playerid, !!response, listitem, inputtext) == 0 ? (DIAL_ODR ? CallLocalFunction("Dial_OnDialogResponse", "dddds", playerid, dialogid, response, listitem, inputtext) : 0) : 1);
}
Posts: 36
Threads: 2
Joined: Dec 2010
Reputation:
0
You should delete their posts and not mine.
They made spam, because the answer is already on the begin of this page.
Moderation fail.