undefined playerid
#1

Код:
public refreshsboard()
{
new score[128]; 
format(score, sizeof(score), "score ~n~ ~n~ ~n~ LS:   %i ~n~ ~n~ LV: %i", team1score, team2score);
TextDrawSetString(Textdraw2, score);
for(new i = 0; i < 50; i++) 
TextDrawShowForPlayer(playerid, TextDraw2);
return 1;
}
line : TextDrawShowForPlayer(playerid, TextDraw2);

Undefined Symbol playerid
Reply
#2

Mhm.... that's right.... 'playerid' isn't defined in that callback there.

But you know what is?.. 'i'... why not use 'i' instead of 'playerid'?


Also realize that TextDrawSetString updates all players' textdraws anyway, so you don't actually have to use TextDrawShowForPlayer.
Reply
#3

how to set it for all players?
Reply
#4

Код:
for(new i = 0; i < MAX_PLAYERS; i++)
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)