[SOLVED]
#1

SOLVED it by myself
Reply
#2

https://sampwiki.blast.hk/wiki/TextDrawSetString
Reply
#3

But now i have another problem. I have editied the question.
Reply
#4

You are setting the string for the textdraw 500 times (MAX_PLAYERS).

TextDrawSetString(NoAtt, newtext);
TextDrawShowForAll(NoAtt);
format(newtext, sizeof(newtext),"%d", numberteam1);
TextDrawSetString(NoDeff, newtext);
TextDrawShowForAll(NoDeff);
format(newtext, sizeof(newtext),"%d", numberteam2);

Code above should only be done once, not for every player. Use the ++ counter in the loop, but only format the string once (just before the return 1

EDIT: Also remove the return 1; from the loops, otherwise as soon as it finds a player, it will stop the loop.
Reply
#5

--
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)