14.06.2015, 16:00
Idk whats wrong. I tried my best but really can't find any tag mismatch.
Lines:
PHP код:
CMD:hit(playerid, params[])
{
new giveplayerid,money, string[256];
if(sscanf(params, "ud", giveplayerid, money)) return SendClientMessage(playerid, RED, "[USAGE]: /hit [name/id] [amount]");
if(money < 10000) return SendClientMessage(playerid, RED, "The hit must be atleast $10K.");
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, RED, "Player not found.");
if(giveplayerid == playerid) return SendClientMessage(playerid, RED, "You can't place a hit on yourself.");
if(GetPlayerCash(playerid) < money) return SendClientMessage(playerid, RED, "You don't have enough money.");
if(pInfo[giveplayerid][pBountyPlacedOn] > 0) return SendClientMessage(playerid, RED, "That player already has a hit contract placed on them.");
{
format(string, sizeof(string), "You have placed a hit contract on %s (%d) for $%d.", pInfo[giveplayerid][pNme], giveplayerid, money);
SendClientMessage(playerid, YELLOW, string);
format(string, sizeof(string), "~y~HIT PLACED ON~n~~b~%s~n~~r~for~n~~g~$%d.", pInfo[giveplayerid][pNme], money);
GameTextForPlayer(playerid, string, 4000, 4);
format(string, sizeof(string), "~y~HIT PLACED ON YOU BY~n~~b~%s~n~~r~for~n~~g~$%d.", pInfo[playerid][pNme], money);
GameTextForPlayer(giveplayerid, string, 4000, 4);
format(string, sizeof(string), "~b~%s (%i) ~w~Has Placed A ~r~Hit ~w~On ~b~%s (%i) ~w~For ~g~$%d~w~.",pInfo[playerid][pNme],playerid,pInfo[giveplayerid][pNme],giveplayerid,money);
SendClientMessageToAll(COLOR_CYAN, string);
SendClientMessage(giveplayerid, RED, "You have a hit contract!");
GivePlayerCashEx(playerid,-money);
pInfo[playerid][pBountyPlacedOn] = giveplayerid;
pInfo[giveplayerid][pBounty] = money;
pInfo[giveplayerid][pBountyHour] = 48;
pInfo[giveplayerid][pBountyMinute] = 0;
pInfo[giveplayerid][pBountyPlacedBy] = playerid;
}
return true;
}
Код:
(5073) : warning 213: tag mismatch (5076) : warning 213: tag mismatch (5079) : warning 213: tag mismatch (5082) : warning 213: tag mismatch
PHP код:
format(string, sizeof(string), "You have placed a hit contract on %s (%d) for $%d.", pInfo[giveplayerid][pNme], giveplayerid, money);
SendClientMessage(playerid, YELLOW, string);
format(string, sizeof(string), "~y~HIT PLACED ON~n~~b~%s~n~~r~for~n~~g~$%d.", pInfo[giveplayerid][pNme], money);
GameTextForPlayer(playerid, string, 4000, 4);
format(string, sizeof(string), "~y~HIT PLACED ON YOU BY~n~~b~%s~n~~r~for~n~~g~$%d.", pInfo[playerid][pNme], money);
GameTextForPlayer(giveplayerid, string, 4000, 4);
format(string, sizeof(string), "~b~%s (%i) ~w~Has Placed A ~r~Hit ~w~On ~b~%s (%i) ~w~For ~g~$%d~w~.",pInfo[playerid][pNme],playerid,pInfo[giveplayerid][pNme],giveplayerid,money);
SendClientMessageToAll(COLOR_CYAN, string);