Not saving reason and admin name
#6

pawn Код:
strcpy(pInfo[pID][pBanAdmin], pInfo[playerid][pName], MAX_PLAYER_NAME);
pInfo[pID][pBanReason] = reason;
Need to use strcpy if copying string from enum.

You also need this if you don't have strcpy:

pawn Код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
{
    return strmid(dest, source, 0, maxlength, maxlength);
}
Reply


Messages In This Thread
Not saving reason and admin name - by NoteND - 18.03.2018, 18:43
Re: Not saving reason and admin name - by ThomasEvil - 18.03.2018, 18:45
Re: Not saving reason and admin name - by NoteND - 18.03.2018, 18:46
Re: Not saving reason and admin name - by ThomasEvil - 18.03.2018, 19:09
Re: Not saving reason and admin name - by NoteND - 18.03.2018, 19:13
Re: Not saving reason and admin name - by MadeMan - 18.03.2018, 19:38

Forum Jump:


Users browsing this thread: 1 Guest(s)