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; }
new amount
new amount, ID;
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) |
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);
new amount, ID