7 Warnings need help.
#1

pawn Код:
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(3928) : warning 219: local variable "Query" shadows a variable at a preceding level
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(4518) : warning 219: local variable "Query" shadows a variable at a preceding level
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(4520) : warning 217: loose indentation
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(4523) : warning 217: loose indentation
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(4531) : warning 217: loose indentation
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(4535) : warning 219: local variable "Query" shadows a variable at a preceding level
C:\Users\GBLTeam\Desktop\Afrika\gamemodes\agrp.pwn(12013) : warning 219: local variable "Query" shadows a variable at a preceding level
Pawn compiler 3.2.3664          Copyright (c) 1997-2006, ITB CompuPhase


7 Warnings.
Line: 3928 >
pawn Код:
new Query[200], Pname[24], escpname[24];
Line: 4518 >
pawn Код:
new Query[200], Pname[24];
Line: 4520 >
pawn Код:
new escpname[24], escpass[100];
Line: 4523 >
pawn Код:
GetPlayerIp(playerid, PIP, 50); //Players IP
Line: 4531 >
pawn Код:
if(dialogid == 15000)
Line: 4535 >
pawn Код:
new Query[200], Pname[24];
Line: 12013 >
pawn Код:
new Query[200], Pname[24];

Anyone can help me to fix this warnings?
Reply
#2

Poste the whole code of this parts.....
The warmn loosing idention, can't be fixed only with 1 line...
Reply
#3

local variable "Query" shadows a variable at a preceding level
^ Means that Query is defined globally else where, to fix this you can simply change Query to say, query, or query1, or what ever.

and the loose indentation is well... badly indented code, so go the line and fix the indentation, (How its lined up, I guess?)
IE


if()
{
SetPlayerHealth(playerid, 0);
}

^ Wrong

if()
{
(Press tab here)SetPlayerHealth(playerid, 0);
}

^ right


This may be confusing, if so my bad.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)