writing string into enum
#1

Код:
enum hInfo
{
hOwner[MAX_PLAYER_NAME]
};
new HouseInfo[MAX_HOUSES][hInfo];

new pName[MAX_PLAYER_NAME]; 
GetPlayerName(playerid, pName, MAX_PLAYER_NAME); 
strcat(HouseInfo[playerid][hOwner], pName);

new string[64];
format(string, 64, "%s", pName);
SendClientMessage(playerid, -1, string);
format(string, 64, "%s", HouseInfo[playerid][hOwner]);
SendClientMessage(playerid, -1, string);
I get pName message(player name) but second message is empty (that means player name is empty). How do I write what is in pName into HouseInfo[i][hOwner]
Reply


Messages In This Thread
writing string into enum - by Supermaxultraswag - 19.12.2015, 15:40
Re: writing string into enum - by Jefff - 19.12.2015, 15:44
Re: writing string into enum - by Supermaxultraswag - 19.12.2015, 15:47

Forum Jump:


Users browsing this thread: 1 Guest(s)