PDA

View Full Version : two errors


Izaque1998
06/05/2018, 03:06 AM
Help-me w\ this erros:

error 035: argument type mismatch (argument 3)
error 047: array sizes do not match, or destination array is too small


enum F_DATA
{
fazenda_Owner[32]
};
new
Farming_Info[MAX_FAZENDAS][F_DATA];


Farming_Info[fid][fazenda_Owner] = DOF2_GetString(d_d,"fazenda_Owner",34);

Dayrion
06/05/2018, 03:19 AM
You can't format a string with the "equal sign". Use strcpy or format.

Izaque1998
06/05/2018, 03:31 AM
You can't format a string with the "equal sign". Use strcpy or format.


hm, I did with format and now I get this error.

: error 001: expected token: ",", but found ";"

format(Farming_Info[fid][fazenda_Owner], 128, "%s", DOF2_GetString(d_d,"fazenda_Owner");

Dayrion
06/05/2018, 03:39 AM
Read your code before posting :s
You are missing a ')'..

Izaque1998
06/05/2018, 03:47 AM
Read your code before posting :s
You are missing a ')'..


:picard: really is a lot of inattention, I'm sorry and thank you I'll rate it with rep... :mrgreen::mrgreen: