Writing a string to playerfiles
#1

I'm trying to write a string to someones player file, when they are banned.
What I'm trying to do;
Код:
PlayerInfo[playerid][pBanReason] = reason;
PlayerInfo[playerid][pBannedBy] = GetPlayerNameEx(giveplayerid);
I've tried things like
strcpy(PlayerInfo[playerid][pBanReason], reason, sizeof(reason));
that just gives an error... I'm not sure how to go about doing this?
Reply


Messages In This Thread
Writing a string to playerfiles - by Jacksta21 - 24.10.2013, 17:45
Re: Writing a string to playerfiles - by reckst4r - 24.10.2013, 17:46
Re: Writing a string to playerfiles - by xVIP3Rx - 24.10.2013, 17:49
Re: Writing a string to playerfiles - by Jacksta21 - 24.10.2013, 18:02

Forum Jump:


Users browsing this thread: 1 Guest(s)