10.11.2016, 10:44
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:
If you want to copy strings, the best way to do that is strcpy. Sometimes, direct assignment results in error about size not matching.
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;
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);