SA-MP Forums Archive
[HELP] warning problem - 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: [HELP] warning problem (/showthread.php?tid=285754)



[HELP] warning problem - Jimbo01 - 25.09.2011

Quote:

warning 201: redefinition of constant/macro (symbol "strcpy(%0,%1,%2)")

But if i remove the line

Код:
#define strcpy(%0,%1,%2) %0="",strcat(%0,%2,%1)
i get other errors

Код:
error 035: argument type mismatch (argument 2)
Whats prob ?


AW: [HELP] warning problem - Jimbo01 - 25.09.2011

I did this and works (found it in sa:mp forum)

changed strcpy to strilen and all lines with strcpy to strlen ?

#define strlen(%0,%1,%2) %0="",strcat(%0,%2,%1)

and other lines strcpy to strlen


will it make any probs ?


Re: [HELP] warning problem - aRoach - 25.09.2011

pawn Код:
#if defined strcpy
    #undef strcpy
#endif

#define strcpy(%0,%1,%2) strcat((%0[0] = '\0', %0), %1, %2)



AW: [HELP] warning problem - Jimbo01 - 25.09.2011

that wont help i get then

Код:
error 035: argument type mismatch (argument 2)
error