Why does this not work ? (Y_INI)
#2

You can't do that.
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;
}
Reply


Messages In This Thread
Why does this not work ? (Y_INI) - by AIped - 12.11.2013, 14:29
Re: Why does this not work ? (Y_INI) - by Loot - 12.11.2013, 14:34
Re: Why does this not work ? (Y_INI) - by Pottus - 12.11.2013, 14:34
Re: Why does this not work ? (Y_INI) - by AIped - 12.11.2013, 14:43
Re: Why does this not work ? (Y_INI) - by Loot - 12.11.2013, 14:48
Re: Why does this not work ? (Y_INI) - by AIped - 12.11.2013, 14:55
Re: Why does this not work ? (Y_INI) - by Loot - 12.11.2013, 15:01
Re: Why does this not work ? (Y_INI) - by AIped - 12.11.2013, 15:06
Re: Why does this not work ? (Y_INI) - by Loot - 12.11.2013, 15:11
Re: Why does this not work ? (Y_INI) - by AIped - 12.11.2013, 15:14

Forum Jump:


Users browsing this thread: 1 Guest(s)