02.06.2014, 17:02
Quote:
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; } |
"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)