warning
#1

C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(2 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(267) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(286) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(324) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(343) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(452) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(267) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(317) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(332) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(342) : warning 225: unreachable code
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(344) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(359) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(374) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(521) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(534) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(535) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(536) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(55 : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(615) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gPlayerClass"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gTeam"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnGameModeInit"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerConnect"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerDeath"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerDisconnect"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerExitedMenu"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


30 Warnings.

Hello to all I would like to know how can I solve the above warning.
ps I'm Italian and I apologize if I am wrong to write something in English xD
Reply
#2

Quote:
Originally Posted by [SFD
Marco ]
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(2 : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(132) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(172) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(267) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(286) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(324) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(343) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(366) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\pawno\include\dutils.in c(452) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(267) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(317) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(332) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(342) : warning 225: unreachable code
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(344) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(359) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(374) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(521) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(534) : warning 219: local variable "string" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(535) : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(536) : warning 219: local variable "i" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(55 : warning 219: local variable "name" shadows a variable at a preceding level
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(615) : warning 202: number of arguments does not match definition
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gPlayerClass"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gTeam"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnGameModeInit"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerConnect"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerDeath"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerDisconnect"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "gcs_bf_OnPlayerExitedMenu"
C:\Documents and Settings\Marco\Desktop\gamemode server\samp02Xserver.win32\gamemodes\dm2.pwn(617) : warning 203: symbol is never used: "strtok"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


30 Warnings.

Hello to all I would like to know how can I solve the above warning.
ps I'm Italian and I apologize if I am wrong to write something in English xD
hi i may be able to help with 1 prob not sure though

strtok(const string[], &index)
{
new length = strlen(string);
while ((index < length) && (string[index] <= ' '))
{
index++;
}
new offset = index;
new result[20];
while ((index < length) && (string[index] > ' ') && ((index - offset) < (sizeof(result) - 1)))
{
result[index - offset] = string[index];
index++;
}
result[index - offset] = EOS;
return result;
}

add that to the bottom of your script just a thought with u using the strtok
and for gTeam do
new gTeam[MAX_PLAYERS];
just a thought
Reply
#3

After adding the thingly you told me. I have this error.

Код:
G:\GTA_SAN\\pawno\include\dini.inc(50) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(109) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(115) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(119) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(125) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(129) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(133) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(140) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(187) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dini.inc(214) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(111) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(117) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(123) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(129) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(136) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\dudb.inc(142) : warning 219: local variable "key" shadows a variable at a preceding level
G:\GTA_SAN\\pawno\include\kihc.inc(97) : error 025: function heading differs from prototype
G:\GTA_SAN\\pawno\include\kihc.inc(98) : error 021: symbol already defined: "strtok"
G:\GTA_SAN\\pawno\include\kihc.inc(113) : error 047: array sizes do not match, or destination array is too small
G:\GTA_SAN\\pawno\include\kihc.inc(120) : error 047: array sizes do not match, or destination array is too small
G:\GTA_SAN\\pawno\include\kihc.inc(124) : error 047: array sizes do not match, or destination array is too small
G:\GTA_SAN\\pawno\include\kihc.inc(582) : error 047: array sizes do not match, or destination array is too small
G:\GTA_SAN\\gamemodes\lvrcr.pwn(65) : error 001: expected token: ";", but found "new"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(257) : error 021: symbol already defined: "gTeam"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(1370) : warning 235: public function lacks forward declaration (symbol "SendpissTimer")
G:\GTA_SAN\\gamemodes\lvrcr.pwn(1374) : warning 235: public function lacks forward declaration (symbol "SendDrugTimer")
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2314) : error 017: undefined symbol "AddStaticHouse"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2315) : error 017: undefined symbol "AddStaticHouse"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2316) : error 017: undefined symbol "AddStaticHouse"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2317) : error 017: undefined symbol "AddStaticHouse"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2318) : error 017: undefined symbol "AddStaticHouse"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2754) : warning 235: public function lacks forward declaration (symbol "GetDistanceBetweenPlayers")
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2905) : warning 235: public function lacks forward declaration (symbol "BanExplosionone")
G:\GTA_SAN\\gamemodes\lvrcr.pwn(2911) : warning 235: public function lacks forward declaration (symbol "BanExplosiontwo")
G:\GTA_SAN\\gamemodes\lvrcr.pwn(5129) : warning 219: local variable "name" shadows a variable at a preceding level
G:\GTA_SAN\\gamemodes\lvrcr.pwn(5164) : warning 219: local variable "name" shadows a variable at a preceding level
G:\GTA_SAN\\gamemodes\lvrcr.pwn(5844) : warning 219: local variable "name" shadows a variable at a preceding level
G:\GTA_SAN\\gamemodes\lvrcr.pwn(13036) : warning 202: number of arguments does not match definition
G:\GTA_SAN\\gamemodes\lvrcr.pwn(13282) : warning 215: expression has no effect
G:\GTA_SAN\\gamemodes\lvrcr.pwn(13593) : warning 225: unreachable code
G:\GTA_SAN\\gamemodes\lvrcr.pwn(14367) : warning 225: unreachable code
G:\GTA_SAN\\gamemodes\lvrcr.pwn(18743) : error 021: symbol already defined: "strtok"
G:\GTA_SAN\\gamemodes\lvrcr.pwn(18757) : error 047: array sizes do not match, or destination array is too small
Reply
#4

preceeding level means something is being defined more than once.
Reply


Forum Jump:


Users browsing this thread: