two errors - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: two errors (
/showthread.php?tid=653487)
two errors -
Izaque1998 - 06.05.2018
Help-me w\ this erros:
PHP код:
error 035: argument type mismatch (argument 3)
error 047: array sizes do not match, or destination array is too small
PHP код:
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);
Re: two errors -
Dayrion - 06.05.2018
You can't format a string with the "equal sign". Use strcpy or format.
Re: two errors -
Izaque1998 - 06.05.2018
Quote:
Originally Posted by Dayrion
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.
Quote:
: error 001: expected token: ",", but found ";"
|
PHP код:
format(Farming_Info[fid][fazenda_Owner], 128, "%s", DOF2_GetString(d_d,"fazenda_Owner");
Re: two errors -
Dayrion - 06.05.2018
Read your code before posting :s
You are missing a ')'..
Re: two errors -
Izaque1998 - 06.05.2018
Quote:
Originally Posted by Dayrion
Read your code before posting
You are missing a ')'..
|
really is a lot of inattention, I'm sorry and thank you I'll rate it with rep...