Warnings
#1

Hello there, I've got some warnings and I don't know how to deal with them, can someone help me?

Here are the warnings:

Код:
C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(8899) : warning 219: local variable "string" shadows a variable at a preceding level

C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(28708) : warning 217: loose indentation

C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(17629) : warning 213: tag mismatch
Here are the lines for each warning:

8888-8999:[For the strings warning]
Код:
//  BUY LOCK
    if(dialogid == MAIN_LOCK_DIALOG)
    {
        if(response == 1)
        {
            switch(listitem)
            {
                case 0:
                {
                    if(PlayerInfo[playerid][pCash] >= 5000)
                    {
                        new string[256];
28706-28708: [For loose warning]:

Код:
            SendClientMessage(playerid,COLOR_GREY,"    You are not at any Locks Store.");
		}
		return 1;
    }
17629 [Mistach warning]:

Код:
if(strcmp(playername,CarInfo[i][vOwner],true)==0)
Help me and get a reputation
Reply
#2

any help?
Reply
#3

pawn Код:
C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(8899) : warning 219: local variable "string" shadows a variable at a preceding level
String already defined, rename it.

pawn Код:
C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(28708) : warning 217: loose indentation
Just press TAB before the function.

pawn Код:
C:\Users\Jameel\Desktop\STRUCTURE\San Andreas Roleplay\gamemodes\sarp.pwn(17629) : warning 213: tag mismatch
->
pawn Код:
if(strcmp(playername,CarInfo[i][vOwner],true,strlen(playername))==0)
Reply
#4

I am not doing it for the rep, and stop offering it already.

1) Reduce the size to 128. Name it something else. You used the same name for something else already.
2) https://sampforum.blast.hk/showthread.php?tid=256961
3) Please post the declaration lines !
Reply
#5

+REP'ed, but the mistatch didn't work
Reply
#6

Any help? the mistatch doesn't work
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)