Command warning (params) warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")
#1

Hello guys, I dont know why this not work. Im using zcmd:

pawn Код:
strcat(params, ".txt"); //This gives a warning warning 224: indeterminate array size in "sizeof" expression (symbol "maxlength")

strcat(params, ".txt", strlen(params) + 4); //Compiles fine but server console says runtime error 20 Invalid Index parameter bad entry point
Reply
#2

pawn Код:
new ParamsVariable[MAX_PLAYERS][128];
strdel(ParamsVariable[playerid], 0, 128);
strcat(ParamsVariable[playerid], params);
strcat(ParamsVariable[playerid], ".txt");
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)