12.04.2014, 19:50
Compile with debug info: https://github.com/Zeex/samp-plugin-...ith-debug-info
so the first 2 of the amx backtrace might get shown. Although, I found the mistake:
FamilyInfo has size of 10 (0-9 the valid indexes). PlayerInfo[targetid][pFMember] is 29 and it exceeds the bounds. You can prevent it by checking its value:
so the first 2 of the amx backtrace might get shown. Although, I found the mistake:
pawn Код:
f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName];
pawn Код:
if (0 <= PlayerInfo[targetid][pFMember] < sizeof (FamilyInfo))
{
f2text = FamilyInfo[PlayerInfo[targetid][pFMember]][FamilyName];
// if you want to copy a string to another, you shouldn't use '=' but strcat, memcpy or format
}

