SA-MP Forums Archive
Warnings - 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: Warnings (/showthread.php?tid=421155)



Warnings - Stanford - 08.03.2013

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


Re: Warnings - Stanford - 08.03.2013

any help?


Re: Warnings - zxc1 - 08.03.2013

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)



Re: Warnings - RajatPawar - 08.03.2013

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 !


Re: Warnings - Stanford - 08.03.2013

+REP'ed, but the mistatch didn't work


Re: Warnings - Stanford - 08.03.2013

Any help? the mistatch doesn't work