crashdetect bugs
#2

Compile with debug info to get the exact lines: https://github.com/Zeex/samp-plugin-...ith-debug-info

After done with the above procedure, start your server and try to reproduce it or wait for it to occur again - then post your logs again.

I don't see anything wrong that would cause it in OnPlayerKeyStateChange callback so perhaps you posted the code from another script (not lvrp.pwn) or you didn't post the whole code of it?

---

Anyway, the only thing that I noticed and is not related to the problem is:
pawn Код:
PlayerNamesAcc[playerid] = PlayerNames[playerid];
...
PlayerNames[playerid] = name;
If you want to copy strings, the best way to do that is strcpy. Sometimes, direct assignment results in error about size not matching.

pawn Код:
#if !defined strcpy
    #define strcpy(%0,%1) strcat((%0[0] = EOS, %0), %1)
#endif

// native strcpy(destination[], source[], max_length = sizeof destination);
pawn Код:
strcpy(PlayerNamesAcc[playerid], PlayerNames[playerid], 24);
...
strcpy(PlayerNames[playerid], name, 24);
Reply


Messages In This Thread
crashdetect bugs - by Flash20 - 10.11.2016, 08:21
Re: crashdetect bugs - by Konstantinos - 10.11.2016, 10:44
Re: crashdetect bugs - by Flash20 - 10.11.2016, 22:41

Forum Jump:


Users browsing this thread: 1 Guest(s)