/hits
#6

Quote:
Originally Posted by Rittik
View Post
Code:
CMD:hits(playerid, params[])
{
    new string[256];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i) && HasHit[i] == 1)
        {

            format(string, sizeof(string), "%s(%i)~n~%s(%i)~n~%s(%i)~n~%s(%i)~n~%s(%i)", GetName(i), i,GetName(i), i,GetName(i), i,GetName(i), i,GetName(i), i);
            TextDrawSetString(List[playerid], string);
            TextDrawShowForPlayer(playerid, List[playerid]);
        }
    }
    return 1;
}
worked but there is another problem now.
"Error: unmatched tilde" is solved now, but here is the problem:

if more than 1 player has a hit contract, it chooses the last player that has been contracted and shows it like:

Code:
Player(0)
Player(0)
Player(0)
Player(0)
Player(0)
it also happens if there is just 1 player that has a hit contract.
Reply


Messages In This Thread
/hits - by AnonScripter - 02.06.2014, 16:16
Re: /hits - by DavidBilla - 02.06.2014, 16:24
Re: /hits - by alanhutch - 02.06.2014, 16:25
Re: /hits - by Rittik - 02.06.2014, 16:31
Re: /hits - by AnonScripter - 02.06.2014, 16:32
Re: /hits - by AnonScripter - 02.06.2014, 17:02
Re: /hits - by Rittik - 02.06.2014, 17:06
Re: /hits - by AnonScripter - 02.06.2014, 17:53
Re: /hits - by Kyance - 02.06.2014, 17:54
Re: /hits - by AnonScripter - 02.06.2014, 18:51

Forum Jump:


Users browsing this thread: 1 Guest(s)