warning 201: redefinition of constant/macro (symbol "string") - 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: warning 201: redefinition of constant/macro (symbol "string") (
/showthread.php?tid=411475)
warning 201: redefinition of constant/macro (symbol "string") -
M3mPHi$_S3 - 29.01.2013
tittle is the Error and the coes are
PHP код:
CMD:buycookies(playerid, params[])
{
new Moneys, Cookies,String[125];
#define string String // Error line
Re: warning 201: redefinition of constant/macro (symbol "string") -
Threshold - 29.01.2013
pawn Код:
CMD:buycookies(playerid, params[])
{
new Moneys, Cookies,String[125];
??
EDIT: If you get 'Undefined Symbol: string" errors, just press CTRL+H and replace 'string' with 'String', but make sure you're only replacing the ones in the command 'buycookies'.
Re: warning 201: redefinition of constant/macro (symbol "string") -
antonio112 - 29.01.2013
I don't get why would you define string String? Where exactly you're trying to 'get' ? You don't need the #define line, you can delete it all. And how about posting the whole command if you get any other errors ?
Re: warning 201: redefinition of constant/macro (symbol "string") -
M3mPHi$_S3 - 29.01.2013
Quote:
Originally Posted by antonio112
I don't get why would you define string String? Where exactly you're trying to 'get' ? You don't need the #define line, you can delete it all. And how about posting the whole command if you get any other errors ?
|
Tahnks , I removed it it's fixed