SA-MP Forums Archive
"Tag Mismatch" - 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: "Tag Mismatch" (/showthread.php?tid=427758)



"Tag Mismatch" - xXitsgodzillaXx - 03.04.2013

Quote:

C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(826 : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8274) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8280) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8281) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8283) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8283) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8285) : warning 213: tag mismatch
C:\Documents and Settings\Owner\Desktop\saserver\gamemodes\DDPDRIFT .pwn(8285) : warning 213: tag mismatch
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase


9 Warnings.

Код:
CMD:hit(playerid, params[])
{
        new amount;
        if(sscanf(params, "dd", ID, amount))
        {
                SendClientMessage(playerid, COLOR_ERROR, "USAGE: /hit [ID] [amount]");
        }
        else if(amount > 0)
        {
                if(IsPlayerConnected(ID))
                {
                        if(GetPlayerMoney(playerid) >= amount)
                        {
                                if(antispam[playerid] == 0)
                                {
                                        hit[ID] = amount;
                                        hiter[ID] = playerid;
                                        new string[64];
                                        format(string, sizeof(string), "You have placed a hit on %s (%i) for $%i", ReturnPlayerName(ID), ID, amount);
                                        SendClientMessage(playerid, COLOR_MSG, string);
                                        format(string, sizeof(string), "%s (%i) has placed a hit on %s (%i) for $%i", ReturnPlayerName(playerid), playerid, ReturnPlayerName(ID), ID, amount);
                                        SendClientMessageToAll(COLOR_MSG, string);
                                        antispam[playerid] = 1;
                                        SetTimerEx("antispamtimer", ANTISPAM_TIME*1000, false, "d", playerid);
                                }
                                else
                                {
                                        SendClientMessage(playerid, COLOR_ERROR, "Please wait before placing another hit!");
                                }
                        }
                        else
                        {
                                SendClientMessage(playerid, COLOR_ERROR, "You do not have enough money!");
                        }
                }
                else
                {
                        SendClientMessage(playerid, COLOR_ERROR, "That player is not connected!");
                }
        }
        else
        {
                SendClientMessage(playerid, COLOR_ERROR, "Minimum amount to hit a person with is $1!");
        }
        return 1;
}
Help would be appriciated!

line 8268 starts at "if(sscanf(params, "dd", ID, amount))"


Respuesta: "Tag Mismatch" - MiGu3X - 03.04.2013

new amout, ID;


Re: Respuesta: "Tag Mismatch" - xXitsgodzillaXx - 03.04.2013

Quote:
Originally Posted by MiGu3X
Посмотреть сообщение
new amout, ID;
May I ask what you mean?


Respuesta: "Tag Mismatch" - MiGu3X - 03.04.2013

In where it says
Код:
new amount
then put
Код:
new amount, ID;



Re: "Tag Mismatch" - MP2 - 03.04.2013

Firstly, use [ pawn ] tags not [ code ]. Secondly, show the lines. I'm not going to spend 10 minutes of my time working out which line is which.

[ame]http://www.youtube.com/watch?v=OHXyVbxijko[/ame]
(Skip to 19 seconds)


Re: "Tag Mismatch" - xXitsgodzillaXx - 03.04.2013

Quote:
Originally Posted by MP2
Посмотреть сообщение
Firstly, use [ pawn ] tags not [ code ]. Secondly, show the lines. I'm not going to spend 10 minutes of my time working out which line is which.

http://www.youtube.com/watch?v=OHXyVbxijko
(Skip to 19 seconds)
I apologize it's been a while since I've used the forums. and here are the specific lines.

pawn Код:
8268 - "if(sscanf(params, "dd", ID, amount))"

8274 - if(IsPlayerConnected(ID))

8280 - hit[ID] = amount;

8281 - hiter[ID] = playerid;

8283 - format(string, sizeof(string), "You have placed a hit on %s (%i) for $%i", ReturnPlayerName(ID), ID, amount);

8285 - format(string, sizeof(string), "%s (%i) has placed a hit on %s (%i) for $%i", ReturnPlayerName(playerid), playerid, ReturnPlayerName(ID), ID, amount);



Respuesta: "Tag Mismatch" - MiGu3X - 03.04.2013

Put the thing i told you...
Код:
 new amount, ID