SA-MP Forums Archive
[HELP]I don't know how to resolve - 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]I don't know how to resolve (/showthread.php?tid=296632)



[HELP]I don't know how to resolve - cotyzor - 12.11.2011

Zonek.pwn(40) : warning 201: redefinition of constant/macro (symbol "MAX_STRING")
Zonek.pwn(14462) : warning 219: local variable "mod" shadows a variable at a preceding level
Zonek.pwn(41957) : warning 203: symbol is never used: "GetPointDistanceToPointExMorph"

lines (39 - 41):
Код:
#define DRUGS_DELAY 6
#define MAX_STRING 300
//==============================================================================
lines (14461 - 14463):
Код:
	    }
				new mod = 100;
				tmp = strtok(cmdtext, idx);
lines 41957: DON'T FIND ... The last line is 41957 and nothing there, ...


Re: [HELP]I don't know how to resolve - Jaxson - 12.11.2011

Undefine the MAX_STRING macro before redefining it:
Код:
#define DRUGS_DELAY 6
#undef MAX_STRING
#define MAX_STRING 300
Rename the mod variable to something else:
Код:
new mod2 = 100;
tmp = strtok(cmdtext, idx);
Find GetPointDistanceToPointExMorph in your script and delete it. It isn't used anyway.


Re: [HELP]I don't know how to resolve - cotyzor - 12.11.2011

1) When I change in mod2 i get 32 new errors
2) I don't find GetPointDistanceToPointExMorph


Re: [HELP]I don't know how to resolve - cotyzor - 12.11.2011

Sorry for x2 ... I resolve all but

" warning 219: local variable "mod" shadows a variable at a preceding level " .... i don't know how to ressolve


Re: [HELP]I don't know how to resolve - Stigg - 12.11.2011

Change the 'mod' to mod_2


Re: [HELP]I don't know how to resolve - MadeMan - 12.11.2011

Quote:
Originally Posted by cotyzor
Посмотреть сообщение
Sorry for x2 ... I resolve all but

" warning 219: local variable "mod" shadows a variable at a preceding level " .... i don't know how to ressolve
Quote:
Originally Posted by Stigg
Посмотреть сообщение
Change the 'mod' to mod_2
And not only THIS 'mod', but all others too in there.


Re: [HELP]I don't know how to resolve - Stigg - 12.11.2011

Quote:
Originally Posted by MadeMan
Посмотреть сообщение
And not only THIS 'mod', but all others too in there.
Change them aswell, common sense really.


Re: [HELP]I don't know how to resolve - MadeMan - 12.11.2011

Quote:
Originally Posted by Stigg
Посмотреть сообщение
Change them aswell, common sense really.
Quote:
Originally Posted by cotyzor
Посмотреть сообщение
1) When I change in mod2 i get 32 new errors
Obviously not for him.


Re: [HELP]I don't know how to resolve - cotyzor - 12.11.2011

Succesfully thx guys !!!!