[HELP] hitman system please
#9

why this code won't work


pawn Код:
if(Target[killerid] == playerid) here target var is set to the hitman in givehit who's get to kill target
        {
            new nejm[2][MAX_PLAYER_NAME],string[128];
            RPName(playerid,nejm[0]);
            RPName(killerid,nejm[1]);
            format(string,128,"Hitman %s is kill %s and collect %d$.",nejm[1],nejm[0],PlayerInfo[playerid][Contract]);
            FamilyMessage(11,COLOR_ZUTA,string);
            format(string,128,"|Hitman| %s is kill: %s",nejm[1],nejm[0]);
            AdminMessage(BLUE,string);
            MoneyPlus(killerid,PlayerInfo[playerid][Contract]);
            PlayerInfo[playerid][Contract] = 0;
            Target[killerid] = -1;
            new query[128];
            mysql_format(mysql,query,sizeof(query),"UPDATE `users` SET `Contract` = %d WHERE `ID` = '
%s'",PlayerInfo[playerid][Contract],PlayerInfo[playerid][ID]);
            mysql_tquery(mysql,query,"""");
        }
Reply


Messages In This Thread
[HELP] hitman system please - by Luca12 - 31.05.2014, 16:18
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:30
Re: [HELP] hitman system please - by Eth - 31.05.2014, 16:32
Re: [HELP] hitman system please - by Rittik - 31.05.2014, 16:36
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 17:17
Re: [HELP] hitman system please - by Eth - 31.05.2014, 18:41
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:16
Re: [HELP] hitman system please - by Eth - 31.05.2014, 19:22
Re: [HELP] hitman system please - by Luca12 - 31.05.2014, 19:28

Forum Jump:


Users browsing this thread: 1 Guest(s)