error 039: constant symbol has no size
#8

pawn Код:
format(PlayerInfo[playerid][pAdminName], MAX_PLAYER_NAME, "%s", inputtext);
Though using format to copy strings is a bad practice. Use strcat/strcpy instead.
pawn Код:
stock strcpy(dest[], const source[], maxlength=sizeof dest)
    strcat((dest[0] = EOS, dest), source, maxlength);

strcpy(PlayerInfo[playerid][pAdminName], inputtext, MAX_PLAYER_NAME);
Reply


Messages In This Thread
error 039: constant symbol has no size - by conor565 - 25.06.2013, 14:20
Re: error 039: constant symbol has no size - by Rokzlive - 25.06.2013, 14:25
Re: error 039: constant symbol has no size - by conor565 - 25.06.2013, 15:16
Re: error 039: constant symbol has no size - by SuperViper - 25.06.2013, 15:25
Re: error 039: constant symbol has no size - by conor565 - 25.06.2013, 15:28
Re: error 039: constant symbol has no size - by introzen - 25.06.2013, 15:49
Re: error 039: constant symbol has no size - by conor565 - 25.06.2013, 16:01
Re: error 039: constant symbol has no size - by Vince - 25.06.2013, 16:13
Re: error 039: constant symbol has no size - by Dragonsaurus - 25.06.2013, 16:15
Re: error 039: constant symbol has no size - by conor565 - 27.06.2013, 14:11

Forum Jump:


Users browsing this thread: 1 Guest(s)