12.11.2013, 14:34
You can't do that.
Companies[0][Owner]= string[32];
Try:
Companies[0][Owner]= string[32];
Try:
pawn Код:
if(!strcmp(cmdtext, "/ownit", true))
{
new name[MAX_PLAYER_NAME+1], string[24+MAX_PLAYER_NAME+1];
GetPlayerName(playerid, name,sizeof(name));
format(string, sizeof(string), "name:%s",name);
// format(string, sizeof(string), "%s", name);
//Companies[0][Owner]= GetPlayerName(playerid, name,sizeof(name));
Companies[0][Owner]= string;
SaveCompanyInfo(0);
return 1;
}