I have a problem..
#1

Well i have a problem, i have a mode with stats. This stats get shown after every round.
The problem is that if i use it with a clientmessage it shows all players, but when i use it in a textdraw it only shows the first id.. How to fix this? thanks..
Reply
#2

did you loop through all the players?
Reply
#3

I guess, else it wouldn't show each player by SendClientMessage, or am i wrong?
Reply
#4

Someone?
Reply
#5

for(new i; i < MAX_PLAYERS; i++)
{
// SendClientMessage(i,color,message);
}
Reply
#6

Lol, read my question again..
Reply
#7

loop the textdraws. the sendmessage was a exemple of a loop.
Reply
#8

how to? can u give me an better example? thanks..
Reply
#9

alright give me a second
Reply
#10

pawn Код:
for(new e; e < MAX_PLAYERS; e++) // this will make the textdraw loop over all players ;)
{
    // now we create a variable to store the textdraw like this one and we put it in action x)
    new Text:welcomeText;
    welcomeText = TextDrawCreate(240.0,580.0,"your test goes here :)");
    // now you show the textdraw to all the players with it
    TextDrawShowForPlayer(e,welcomeText);   // the "e" loops playerid to all players


}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)